Page 1 of 1

How can I hide the "my_view_page.php" page?

Posted: 08 Feb 2015, 19:09
by Lido
Hi guys,

I would like that the "viewers" can see all the issues reported and assigned to anybody, not only the "assigned to me". So, I would like to hide "my_view_page.php". The "viewer" user has a role of supervisor in our company, so they will need to download the excel reports and "print issues". In other words, they are not going to use this page and they asked to us for hiding it.

Thanks for your help.

Re: How can I hide the "my_view_page.php" page?

Posted: 09 Feb 2015, 08:22
by n - i - i
Since there's no config option to disable this page (as far as I know), you can simply comment out the relevant line. For mantis 1.2.19 change:

Code: Select all

# My View
$t_menu_options[] = '<a href="' . helper_mantis_url( 'my_view_page.php">' ) . lang_get( 'my_view_link' ) . '</a>';
to

Code: Select all

# My View
# $t_menu_options[] = '<a href="' . helper_mantis_url( 'my_view_page.php">' ) . lang_get( 'my_view_link' ) . '</a>';
That's line 767 in ./core/html_api.php (function print_menu()). Note that you have to redo this change, since it will of course disappear once you update to a newer mantis version.