plugins/ajim/enanosetup.php
changeset 0 db23957ad1c7
equal deleted inserted replaced
-1:000000000000 0:db23957ad1c7
       
     1 <?php
       
     2 
       
     3 $plugins->attachHook('acl_rule_init', 'ajim_permissions_setup($session, $this);');
       
     4 
       
     5 function ajim_permissions_setup(&$session, &$paths)
       
     6 {
       
     7   $session->register_acl_type('ajim_post', AUTH_ALLOW,    'ajim_perm_post', Array(),            'All');
       
     8   $session->register_acl_type('ajim_edit', AUTH_ALLOW,    'ajim_perm_edit', Array(),            'All');
       
     9   $session->register_acl_type('ajim_mod',  AUTH_DISALLOW, 'ajim_perm_mod',  Array('ajim_post'), 'All');
       
    10 }