Hello everyone, i want to show/hide a menu depending on a profil i just created.
i created 2 new profiles (ics user and ics admin) and a new class Ics, i created a new group which has only that class, i want to show the menu on my class for all user who has profil ics user, but only user who has profil ics admin should be able to delete or modify object in my class,
my menu appear in ConfigManagement menu, here is my code
Your XML definition of a menu does not respect the grammar
Below a "menu" XML tag, a "class" tag is not supported.
When you defined a "enable_class" tag, you must specify also an "enable_action" tag.
Then the main issue in your setting is that everybody can read the "Ics" class, unless you explicitly deny the read right on the "Ics" group in each other profiles. Be cautious a "deny" always wins against an "allow" which means that if you give 2 profiles to someone, one allowing and one denying the Ics group, he won't see that class.
Hello everyone, i want to show/hide a menu depending on a profil i just created.
i created 2 new profiles (ics user and ics admin) and a new class Ics, i created a new group which has only that class, i want to show the menu on my class for all user who has profil ics user, but only user who has profil ics admin should be able to delete or modify object in my class,
my menu appear in ConfigManagement menu, here is my code
but it doesnt work, the menu doesnt show up for user with profil ics_user but it works for user with profil ics_admin,
when i check the matrix of rights of ics_user i have read allow (see first image)
NB: user with profil ics_user can open an object of my class but the menu doest show up
i want to know if the problem is where i put my menu or something else in my configuration?
thanks you
Your XML definition of a menu does not respect the grammar
Then the main issue in your setting is that everybody can read the "Ics" class, unless you explicitly deny the read right on the "Ics" group in each other profiles. Be cautious a "deny" always wins against an "allow" which means that if you give 2 profiles to someone, one allowing and one denying the Ics group, he won't see that class.