Dotclear


Ignore:
Timestamp:
01/20/17 19:13:43 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.11
source:
187d31e91d0a281d3e5386b291437e75314a9b3f
Message:

blogs’ admin (ie not super-admin) got back their blogs’ list but only super-admin may do actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r3403 r3522  
    686686 
    687687               $cols = array( 
    688                     'blog' => '<th colspan="2" scope="col" abbr="comm" class="first nowrap">'.__('Blog id').'</th>', 
     688                    'blog' => '<th'. 
     689                         ($this->core->auth->isSuperAdmin() ? ' colspan="2"' : ''). 
     690                         ' scope="col" abbr="comm" class="first nowrap">'.__('Blog id').'</th>', 
    689691                    'name' => '<th scope="col" abbr="name">'.__('Blog name').'</th>', 
    690692                    'url' => '<th scope="col" class="nowrap">'.__('URL').'</th>', 
     
    734736          $cols = array( 
    735737               'check' => 
     738                    ($this->core->auth->isSuperAdmin() ? 
    736739                    '<td class="nowrap">'. 
    737740                    form::checkbox(array('blogs[]'),$this->rs->blog_id,$checked,'','',0). 
    738                     '</td>', 
     741                    '</td>' : ''), 
    739742               'blog' => 
    740743                    '<td class="nowrap">'. 
    741                     '<a href="'.$this->core->adminurl->get("admin.blog",array('id' => $blog_id)).'"  '. 
    742                     'title="'.sprintf(__('Edit blog settings for %s'),$blog_id).'">'. 
    743                     '<img src="images/edit-mini.png" alt="'.__('Edit blog settings').'" /> '.$blog_id.'</a> '. 
     744                    ($this->core->auth->isSuperAdmin() ? 
     745                         '<a href="'.$this->core->adminurl->get("admin.blog",array('id' => $blog_id)).'"  '. 
     746                              'title="'.sprintf(__('Edit blog settings for %s'),$blog_id).'">'. 
     747                              '<img src="images/edit-mini.png" alt="'.__('Edit blog settings').'" /> '.$blog_id.'</a> ' : 
     748                         $blog_id.' '). 
    744749                    '</td>', 
    745750               'name' => 
Note: See TracChangeset for help on using the changeset viewer.

Sites map