Added overrides for the privileges tied to image, style, and template management.
This commit is contained in:
parent
079109dc52
commit
205fff39f2
6 changed files with 31 additions and 32 deletions
|
|
@ -72,7 +72,7 @@ sub _replacement {
|
|||
%hash
|
||||
);
|
||||
}
|
||||
if (WebGUI::Privilege::isInGroup(5,$session{user}{userId})) {
|
||||
if (WebGUI::Privilege::isInGroup($session{setting}{styleManagersGroup},$session{user}{userId})) {
|
||||
%hash = (
|
||||
WebGUI::URL::page('op=listStyles')=>WebGUI::International::get(6),
|
||||
%hash
|
||||
|
|
@ -84,13 +84,13 @@ sub _replacement {
|
|||
%hash
|
||||
);
|
||||
}
|
||||
if (WebGUI::Privilege::isInGroup(8,$session{user}{userId})) {
|
||||
if (WebGUI::Privilege::isInGroup($session{setting}{templateManagersGroup},$session{user}{userId})) {
|
||||
%hash = (
|
||||
WebGUI::URL::page('op=listTemplates')=>WebGUI::International::get(508),
|
||||
%hash
|
||||
);
|
||||
}
|
||||
if (WebGUI::Privilege::isInGroup($session{setting}{groupToManageImages},$session{user}{userId})) {
|
||||
if (WebGUI::Privilege::isInGroup($session{setting}{imageManagersGroup},$session{user}{userId})) {
|
||||
%hash = (
|
||||
WebGUI::URL::page('op=listImages')=>WebGUI::International::get(394),
|
||||
%hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue