View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024364 | mantisbt | administration | public | 2018-04-25 07:22 | 2018-05-10 12:40 |
Reporter | pikachu | Assigned To | atrol | ||
Priority | normal | Severity | feature | Reproducibility | have not tried |
Status | closed | Resolution | won't fix | ||
Product Version | 2.13.1 | ||||
Summary | 0024364: Default (sub)project for new users | ||||
Description | is it possible to create a new variable to assign the default (sub)project for new users? like $g_newusers_default_project = '2' or '2;3' | ||||
Tags | No tags attached. | ||||
Are you aware that the default project can be set by the user on page My Account > Account Preferences? If this is not what you want, you can write a plugin that uses EVENT_MANAGE_USER_CREATE to populate the user preference database table. |
|
in my case new users has come from ldap authentication, so they'll see "all projects" by default, and i need to set default project for all this (ldap) users. so i can in db table 'mantis_user_pref_table' change column "default project" to the needed value, but this doesn't work until the user will open own account preferences and save it. and i thought maybe this feature can be implemented in core or via system plugin. |
|
As I wrote before, this can be implemented by a plugin that uses EVENT_MANAGE_USER_CREATE to populate I don't think this will be implemented in core as I don't see at the moment, that this is a typical use case. A clean solution that works with any Mantis configuration has to consider that users might not have access rights for $g_newusers_default_project |
|
it won't be easy for me, but i'll try :)
They can decide that later, but after the first login it's necessity to be in a particular project. In my case this is only for ldap-newcomers, some kind of quarantine. |
|
Thanks for your understanding. For a quick and dirty solution you would just have to change the following line in file user_pref_api.php |
|