Page 1 of 1

Hide "account_prefs_page.php"-page

Posted: 10 Jun 2015, 10:49
by bncnbrue
Hello.
I was wondering if it is possible to hide the account_prefs_page (or the whole account_page.php) for everyone with a lower access level than MANAGER.

We are using Mantis 1.2.17.

Re: Hide "account_prefs_page.php"-page

Posted: 10 Jun 2015, 11:18
by atrol
There is no global configuration option for it.

What you can do is to set individual users to "protected" (typically done for anonymous accounts).
After that they will get "Access denied" error when trying to access the page.

Re: Hide "account_prefs_page.php"-page

Posted: 15 Jun 2015, 07:50
by bncnbrue
atrol wrote:There is no global configuration option for it.

What you can do is to set individual users to "protected" (typically done for anonymous accounts).
After that they will get "Access denied" error when trying to access the page.
I tried to set a few accounts to "protocted" but after that they're not able to login again (APPLICATION ERROR #12). Is there an other way to set this access restriction?

Re: Hide "account_prefs_page.php"-page

Posted: 15 Jun 2015, 10:25
by atrol
bncnbrue wrote: I tried to set a few accounts to "protocted" but after that they're not able to login again (APPLICATION ERROR #12)
I tried a protected user on version 1.2.19 without getting any problem to login.
I have no time to check if your problem could be caused by using the outdated 1.2.17 version.

Independent from that, I recommend to upgrade to 1.2.19.

Re: Hide "account_prefs_page.php"-page

Posted: 08 Mar 2016, 17:12
by josepernia8
You could hide it using html_api.php placing a condition in the menu print function that handles that part, if the user has the access level then you print the info.