Dotclear

Changeset 2908


Ignore:
Timestamp:
01/23/11 20:09:53 (13 years ago)
Author:
Moe
Message:

@ Reply 1.6.1: changed plugin permissions (closes #611)

Location:
plugins/atReply
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/atReply/_admin.php

    r2746 r2908  
    3232$core->addBehavior('adminAfterCommentDesc', 
    3333     array('AtReplyAdmin','adminAfterCommentDesc')); 
     34 
    3435$core->addBehavior('adminBeforeCommentCreate', 
    3536     array('AtReplyAdmin','adminBeforeCommentCreate')); 
  • plugins/atReply/_define.php

    r2746 r2908  
    3232  /* Description*/  'Easily reply to comments', 
    3333  /* Author */           'Moe (http://gniark.net/) append extension by buns.fr', 
    34   /* Version */               '1.6', 
    35   /* Permissions */ 'admin' 
     34  /* Version */               '1.6.1', 
     35  /* Permissions */ 'usage,contentadmin' 
    3636); 
    3737?> 
  • plugins/atReply/index.php

    r2746 r2908  
    2727 
    2828if (!defined('DC_CONTEXT_ADMIN')) {return;} 
     29 
     30if (!$core->auth->check('admin',$core->blog->id)) 
     31{ 
     32     echo('<html><head><title>Error</title></head>'. 
     33          '<body><p class="error">'. 
     34          __('Invalid permission.'). 
     35          '</p></body></html>'); 
     36     return; 
     37} 
    2938 
    3039$settings =& $core->blog->settings; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map