WordPress.org

Plugin Directory

Changeset 433775 for plugin-notes


Ignore:
Timestamp:
09/06/11 04:33:19 (3 years ago)
Author:
batmoo
Message:

Change required cap to activate_plugins from edit_plugins, which gets removed with DISALLOW_FILE_EDIT, props gyrus

http://wordpress.org/support/topic/edit_plugins-capability?replies=1#post-2318201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugin-notes/trunk/plugin-notes.php

    r433774 r433775  
    174174        $current_user = wp_get_current_user(); 
    175175         
    176         if (current_user_can('edit_plugins')) { 
     176        if (current_user_can('activate_plugins')) { 
    177177            // Get notes array 
    178178            $notes = $this->_get_notes(); 
Note: See TracChangeset for help on using the changeset viewer.