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

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Lido
Posts: 4
Joined: 27 Jan 2015, 21:11

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

Post 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.
n - i - i
Posts: 10
Joined: 01 Feb 2015, 19:51

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

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