plugins/ajim/enanosetup.php
author Dan
Fri, 29 May 2009 14:36:51 -0400
changeset 1 f7b24c744747
parent 0 db23957ad1c7
permissions -rw-r--r--
Updated for 1.1.6 compatibility
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     1
<?php
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     2
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     3
$plugins->attachHook('acl_rule_init', 'ajim_permissions_setup($session, $this);');
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     4
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     5
function ajim_permissions_setup(&$session, &$paths)
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     6
{
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     7
  $session->register_acl_type('ajim_post', AUTH_ALLOW,    'ajim_perm_post', Array(),            'All');
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     8
  $session->register_acl_type('ajim_edit', AUTH_ALLOW,    'ajim_perm_edit', Array(),            'All');
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
     9
  $session->register_acl_type('ajim_mod',  AUTH_DISALLOW, 'ajim_perm_mod',  Array('ajim_post'), 'All');
db23957ad1c7 First commit; requires latest Enano from Hg. It works!
Dan
parents:
diff changeset
    10
}