plugins/gallery/nssetup.php
changeset 20 d8a281557365
parent 18 c1c398349651
child 42 7c6e2e97aa08
equal deleted inserted replaced
17:ecb96b051d08 20:d8a281557365
    19   global $db, $session, $paths, $template, $plugins; // Common objects
    19   global $db, $session, $paths, $template, $plugins; // Common objects
    20   
    20   
    21   $paths->create_namespace('Gallery', 'Image:');
    21   $paths->create_namespace('Gallery', 'Image:');
    22   
    22   
    23   $session->register_acl_type('gal_full_res', AUTH_ALLOW, 'View image at full resolution', array('read'), 'Gallery');
    23   $session->register_acl_type('gal_full_res', AUTH_ALLOW, 'View image at full resolution', array('read'), 'Gallery');
       
    24   $session->register_acl_type('snapr_add_tag', AUTH_DISALLOW, 'Add image tags (separate from adding normal tags)', array('read'), 'Gallery');
    24   
    25   
    25   $session->acl_extend_scope('read',                   'Gallery', $paths);
    26   $session->acl_extend_scope('read',                   'Gallery', $paths);
    26   $session->acl_extend_scope('post_comments',          'Gallery', $paths);
    27   $session->acl_extend_scope('post_comments',          'Gallery', $paths);
    27   $session->acl_extend_scope('edit_comments',          'Gallery', $paths);
    28   $session->acl_extend_scope('edit_comments',          'Gallery', $paths);
    28   $session->acl_extend_scope('mod_comments',           'Gallery', $paths);
    29   $session->acl_extend_scope('mod_comments',           'Gallery', $paths);