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

<?php

$plugins->attachHook('acl_rule_init', 'ajim_permissions_setup($session, $this);');

function ajim_permissions_setup(&$session, &$paths)
{
  $session->register_acl_type('ajim_post', AUTH_ALLOW,    'ajim_perm_post', Array(),            'All');
  $session->register_acl_type('ajim_edit', AUTH_ALLOW,    'ajim_perm_edit', Array(),            'All');
  $session->register_acl_type('ajim_mod',  AUTH_DISALLOW, 'ajim_perm_mod',  Array('ajim_post'), 'All');
}