Hide "account_prefs_page.php"-page

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
bncnbrue
Posts: 2
Joined: 10 Jun 2015, 10:39

Hide "account_prefs_page.php"-page

Post 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.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Hide "account_prefs_page.php"-page

Post 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.
Please use Search before posting and read the Manual
bncnbrue
Posts: 2
Joined: 10 Jun 2015, 10:39

Re: Hide "account_prefs_page.php"-page

Post 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?
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Hide "account_prefs_page.php"-page

Post 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.
Please use Search before posting and read the Manual
josepernia8
Posts: 5
Joined: 07 Mar 2016, 19:56

Re: Hide "account_prefs_page.php"-page

Post 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.
Post Reply