how to : admin panel limited for a given group  Top

  • If you wan't to have a custom admin panel for the user of a given group.

    It's easy,

    First , add a permission to allow administration of a given module

    For instance, if you have a group "moderator", and that you wan't to give access to the admin part of pnForum. You will have to add a permission

    Code

    moderator pnforum:: .* administrate



    Then add access to the admin panel

    Code

    moderator Admin:: .* comment


    Then add a link to the administration part for this group in your template

    From:

    <!--[pnmodurl modname=Admin type=admin func=adminpanel]-->


    Sample (ezcomment and pnForum have admin right for the group moderator)
    http://luffyserveur.free.fr/admin-panel.PNG

    Notes: you can use the group checker plugin, if you wan't to display this link to only a given group.
    http://community.zikula.org/module-Database-viewpub-tid-8-pid-23.htm




    edited by: mumuri, Jan 16, 2009 - 08:24 PM
  • I have tried this and it is not working for me. I am on zikula 1.2.1

    I am trying to give Admin Access to the Users system module. My permissions are:

    Code

    moderator  Users::  .*  Admin access
    moderator  Admin:: .*  Comment access


    When I try to go to index.php?modules=Admin&type=admin&func=adminpanel

    I get Access NOT granted to this page.

    Could it be because I am trying to give permission to a system module?
    Does anyone know how I can give access to a group to handle Users?

    thanks!
  • Indeed,
    I guess it checks all the modules in the default tab (chosen in the Admin module settings), but the 'System' tab is not the default, and the Andre's example is fine because those are third party modules in the corresponding defauit tab.

    --
    - Mateo T. -
    Mis principios... son mis fines

This list is based on the users active over the last 60 minutes.