Configure Tabs

Have a question? Welcome here!
User avatar
jjeffman
Posts: 91
Joined: Thu Dec 08, 2011 1:05 pm
Location: Porto Alegre, Brazil

Configure Tabs

Postby jjeffman » Wed Dec 23, 2015 5:23 pm

Hello Artem,

Is there a way of configure which main menu items will be visible according to a logical condition, such as if the logged user belongs to a certain global group ?

If not, could you please point me where in the Etraxis 3.8.1 code can I try to modify it and get this behaviour ?

Thank you very much.
Best regards.

Jayme Jeffman

User avatar
Artem
eTraxis Support
Posts: 227
Joined: Mon Sep 15, 2008 2:51 am
Location: Auckland, New Zealand
Contact:

Re: Configure Tabs

Postby Artem » Thu Dec 24, 2015 5:33 am

Hello Jayme,

No, there is no such ability. If you would like to implement it on your own, please check the "xml2html" function in the "src/engine/xml.php", which generates the top menu:

https://github.com/etraxis/etraxis-obso ... l.php#L142
Best regards,
Artem

User avatar
jjeffman
Posts: 91
Joined: Thu Dec 08, 2011 1:05 pm
Location: Porto Alegre, Brazil

Re: Configure Tabs

Postby jjeffman » Thu Dec 24, 2015 12:48 pm

Thank you very much for answering me.

I will take a look on the code and try to implement a new behaviour on the main menu.

I do not want every user may know which are the available projects, as far as they do not have the right to create tickets on every project.

Thank you very much.
Best regards.

Jayme Jeffman

User avatar
Artem
eTraxis Support
Posts: 227
Joined: Mon Sep 15, 2008 2:51 am
Location: Auckland, New Zealand
Contact:

Re: Configure Tabs

Postby Artem » Fri Dec 25, 2015 12:47 am

Actually, it already works as you described - your users don't see all existing projects.
A user sees a project in that list only if one of the following is true:
  1. User belongs to at least one group which has some permissions in project's template.
  2. Project has at least one template which has guest access enabled.
  3. User is an administrator.
Long story short - if user is not allowed to do anything in a project, he will not see it in the list.
Best regards,
Artem


Who is online

Users browsing this forum: No registered users and 1 guest