Loading...
 
Features / Usability

Features / Usability


Re: Permission for Menu

posts: 4656 Japan

A look at tiki.sql shows that there isn't a specific permission for creating and editing menues. tiki_p_admin is the permission indicated for tiki-admin_menus.php.

-- Gary - zukakakina.com

posts: 4

> A look at tiki.sql shows that there isn't a specific permission for creating and editing menues. tiki_p_admin is the permission indicated for tiki-admin_menus.php.
>
> — Gary - zukakakina.com
>
>

and isn't possible to create a new specific permission??

posts: 15 Norway

> thanks!!!!!!!
>
> i'm going to try!!
> biggrin
>
Pazzo, do you ever try this out. If yes, can you share your solution with me. I, too, am interested in allowing a certain group (teachers) add their own menus. Otherwise, I will be having to do this for them. Thanks! Diana

posts: 4656 Japan

Adding a new permission requires adding the new permission to the database, and modifying the file for the relevant page. Follow the instructions in the link given by Sylvie, but since that question concerns polls, you should replace "polls" with "menus" throughout the description.

Making the new permission involves adding the permission (tiki_p_admin_menus to Tiki's database table users_permissions, and modifying the file to check if the user is in a group that has the new permission before allowing access. In this case, the file to modify is tiki-admin_menus.php at line 14 or so, where $tiki_p_admin will be replaced by $tiki_p_admin_menues.

After adding the new permission to the db table, the next time you go to the admin groups page, you'll see it added to the list of permissions. Assign it as you do other permissions.

-- Gary - zukakakina.com