"Is it possible to create a profile, for example, 'Data Model Viewer', via an extension and allow a user with that profile to view the data model? I have already tried this, but no user who is not an Admin has access to that menu."
<group id="DataModelAccess" _delta="define">
<comment>Access to the Data Model menu</comment>
<classes>
<class id="ResourceSystemMenu">
<class id="ResourceAdminMenu">
<class id="ResourceRunQueriesMenu">
</class></class></class></classes>
</group>
<profile id="1008" _delta="define">
<name>Data Model Viewer</name>
<description>Allows access to the Data Model menu under Admin Tools</description>
<groups>
<group id="DataModelAccess">
<actions>
<action id="UR_ACTION_MODIFY">
</action></actions>
</group>
</groups>
</profile>
Thanks
Cristian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also hope that you did not provide the full XML, because "group" must be declared under "groups" and "profile" under "profiles", booth collections being under "user_rights" tag
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Is it possible to create a profile, for example, 'Data Model Viewer', via an extension and allow a user with that profile to view the data model? I have already tried this, but no user who is not an Admin has access to that menu."
<group id="DataModelAccess" _delta="define"> <comment>Access to the Data Model menu</comment> <classes> <class id="ResourceSystemMenu"> <class id="ResourceAdminMenu"> <class id="ResourceRunQueriesMenu"> </class></class></class></classes> </group><profile id="1008" _delta="define">
<name>Data Model Viewer</name>
<description>Allows access to the Data Model menu under Admin Tools</description>
<groups>
<group id="DataModelAccess">
<actions>
<action id="UR_ACTION_MODIFY">
</action></actions>
</group>
</groups>
</profile>
Hi Christian,
Your syntax is a bit wrong, inside the profile declaration, the access rights must be given this way:
I also hope that you did not provide the full XML, because "group" must be declared under "groups" and "profile" under "profiles", booth collections being under "user_rights" tag
Excellent!,
My mistake!, now its work!.
Thanks for de help. @Vicent
Hqve you checked the permissions of the menu item itself?
I saw the documentation in this url https://www.itophub.io/wiki/page?id=latest:customization:xml_reference#menus and dont see the posiblity to define permitions..
This is my configuration actually.
The only way i found is comment the line 26 of the file schema.php
//ApplicationMenu::CheckMenuIdEnabled('DataModelMenu');