Dotclear


Ignore:
Timestamp:
09/22/13 02:49:48 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
default
Message:

Revamp plugin maintenance, step 5, now open to admin user and various fixes, addresses #999

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/inc/class.dc.maintenance.php

    r1984 r1989  
    7777               } 
    7878 
    79                $this->tasks[$task] = new $task($this, 'plugin.php?p=maintenance'); 
     79               if (($t = new $task($this, 'plugin.php?p=maintenance')) === null 
     80               || $t->perm() === null && !$this->core->auth->isSuperAdmin() 
     81               || !$this->core->auth->check($t->perm(), $this->core->blog->id)) { 
     82                    continue; 
     83               } 
     84 
     85               $this->tasks[$task] = $t; 
    8086          } 
    8187 
Note: See TracChangeset for help on using the changeset viewer.

Sites map