Loading...
 
Skip to main content

Features / Usability


Permission for Menu

Hello.
I've install tikiwiki and now I want to create a group with determinate restriction, but i don't find what is the permission for "create and edit menu"...
can someone help me??
thank a lot!

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.comQuestion

> 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.comQuestion
>
>

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

> thanks!!!!!!!
>
> i'm going to try!!
> 😀
>
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

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.comQuestion