View all bug access, Real names and customizing bug view

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mates215
Posts: 13
Joined: 04 Sep 2015, 10:15

View all bug access, Real names and customizing bug view

Post by mates215 »

Hello, i am trying to customize Mantis - it should work as internal helpdesk in our company. I want to make it much simplier, i customized report page, my view etc. Iam not able to solve these 3 things though:

Question 1:

If an user has the reporter role - he shouldnt be able to see view_all_bug_page.php. He shouldnt be able to check other issues where he is not reporter (except of monitoring maybe).

I tried this in config_inc (it worked for hiding changelog: $g_view_changelog_threshold = NOBODY;)

So i tried this:
$g_view_all_bug_threshold = UPDATER;

It does not seem to work. Reporter still has the view all bug page in the menu. I found this older topic, but it does not seem the same thing. I dont think it is good idea to change anyhthing in the core.

viewtopic.php?f=2&t=18855

Question 2:

In bug view page i would like to remove (or hide) severity, status (public) and resolution

I have only found what to show:

$g_bug_view_page_fields = array('selection','edit','id','project_id','reporter_id','handler_id','priority','reproducibility','projection','eta','resolution','view_state','date_submitted','attachment_count','category','sponsorship_total','status','last_updated','summary','bugnotes_count','description','attachment');

Sadly after this there were missing things like date of report etc. I would be simplier to insert command for hiding...

Question 3:

I would like to show real names (at least in comments/notes). We are using LDAP.

In config_inc i set this:

# --- Real names ---
# $g_show_realname = ON;
# $g_show_user_realname_threshold = REPORTER; # Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)

and this:

$g_log_level = LOG_LDAP;
$g_log_destination = 'file:/path way';

$g_login_method = LDAP;#PLAINT;

$g_ldap_server = (ldap ip adress)
#$g_ldap_port = (ldap port)
$g_ldap_root_dn = 'dc=(name of company)';
$g_ldap_protocol_version = 3;
$g_ldap_realname_field = 'cn';
$g_ldap_bind_dn = 'cn=hmldap,ou=admins,dc=(name of company)';
$g_ldap_bind_passwd = '(password)';
$g_ldap_uid_field = 'sAMAccountName';
$g_use_ldap_realname = ON;
$g_use_ldap_email = ON;
$g_use_ldap_realname_reg = ON;
$g_use_ldap_email_reg = ON;
$g_ldap_follow_referrals = OFF;

It does not work though.

Thanks for a reply.

Martin
mates215
Posts: 13
Joined: 04 Sep 2015, 10:15

Re: View all bug access, Real names and customizing bug view

Post by mates215 »

Question 2 + 3 is ok now. Question 1 is still actual, thanks.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: View all bug access, Real names and customizing bug view

Post by atrol »

Add the following line to file config_inc.php

Code: Select all

$g_limit_reporters = ON;
After that, reporters can view only issues that they reported.
Please use Search before posting and read the Manual
PNV1983
Posts: 8
Joined: 12 Mar 2018, 15:46

Re: View all bug access, Real names and customizing bug view

Post by PNV1983 »

Any solution for Question1?, i habe de same problem.

Thanks
PabloNV
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: View all bug access, Real names and customizing bug view

Post by atrol »

PNV1983 wrote: 12 Mar 2018, 15:55 Any solution for Question1?
Does setting $g_limit_reporters not fix the issue?
Please use Search before posting and read the Manual
PNV1983
Posts: 8
Joined: 12 Mar 2018, 15:46

Re: View all bug access, Real names and customizing bug view

Post by PNV1983 »

I have a similar problem, but What I need is to simplify the views of the reporters, my idea is to hide "View Bug" Menu button for the reporters profile only.

Its posible?
Last edited by PNV1983 on 12 Mar 2018, 19:51, edited 1 time in total.
PabloNV
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: View all bug access, Real names and customizing bug view

Post by atrol »

PNV1983 wrote: 12 Mar 2018, 16:16 I habe a similar problem,
So it would have been better if you had created a new topic for it.

No need to create a new topic as you opened also https://www.mantisbt.org/bugs/view.php?id=24106
Please use Search before posting and read the Manual
PNV1983
Posts: 8
Joined: 12 Mar 2018, 15:46

Re: View all bug access, Real names and customizing bug view

Post by PNV1983 »

atrol wrote: 12 Mar 2018, 18:09
PNV1983 wrote: 12 Mar 2018, 16:16 I habe a similar problem,
So it would have been better if you had created a new topic for it.

No need to create a new topic as you opened also https://www.mantisbt.org/bugs/view.php?id=24106
OK, Thanks
PabloNV
RIchardDV
Posts: 2
Joined: 13 Mar 2018, 08:47

Re: View all bug access, Real names and customizing bug view

Post by RIchardDV »

Question 2 + 3 is ok now
Hi mates215, how did you solve the 2nd issue?
Regards, Richard
Post Reply