change menu permission

15 views
Skip to first unread message

Matteo Biviglia

unread,
Nov 8, 2013, 11:24:49 AM11/8/13
to ent...@googlegroups.com
hi all,
I'm trying to revisit the profiling of some features such as the users management and i override User.xml file changing superuser permission to a custom.
Now i can access directly into pages with new permission but i can't see the shortcuts for User management into the menu.
I'm trying to override shortcuts.xml too but nothing changes. what am i doing wrong?!

Thanks

Matteo Biviglia

unread,
Nov 11, 2013, 3:51:50 AM11/11/13
to ent...@googlegroups.com
I found the solution, unfortunately wrong in trying to override the shortcuts.xml because for the solution to my problem was enough to override the menu.jsp by changing the permissions on the tags "wp:ifauthorized."

For now I don't need to change the profiling of management roles and groups.

<wp:ifauthorized permission="userManagements">
<li class="openmenu"><a href="#" rel="fagiano_utenze" id="menu_utenze" class="subMenuToggler"><s:text name="menu.accountAdmin" /></a>
<div class="menuToggler" id="fagiano_utenze"><div class="menuToggler-1"><div class="menuToggler-2">
<ul>
<li><a href="<s:url action="intro" namespace="/do/User" />"><s:text name="menu.accountAdmin.users" /></a></li>
                        <wp:ifauthorized permission="superuser">
                        <li><a href="<s:url action="intro" namespace="/do/Role" />"><s:text name="menu.accountAdmin.roles" /></a></li>
                        </wp:ifauthorized>
                </ul>
</div></div></div>
</li>
            <wp:ifauthorized permission="superuser">
                <li><a href="<s:url action="intro" namespace="/do/Group" />" id="menu_gruppi"><s:text name="menu.accountAdmin.groups" /></a></li>
            </wp:ifauthorized>
        </wp:ifauthorized>
Reply all
Reply to author
Forward
0 new messages