Changeset 2234:444cf8f1d87c
- Timestamp:
- 10/03/13 16:55:30 (11 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/class.dc.favorites.php
r2230 r2234 107 107 } 108 108 $fattr = array_merge (array('id' => null,'class'=>null),$fattr); 109 if (!isset($fattr['permissions']) || $this->core->auth->check($fattr['permissions'],$this->core->blog->id)) { 110 return $fattr; 111 } else { 112 return false; 113 } 109 if (isset($fattr['permissions'])) { 110 if (is_bool($fattr['permissions']) && !$fattr['permissions'] ) { 111 return false; 112 } 113 if (!$this->core->auth->check($fattr['permissions'],$this->core->blog->id)) { 114 return false; 115 } 116 } 117 return $fattr; 114 118 } 115 119 -
plugins/tags/_admin.php
r2230 r2234 48 48 'small-icon' => 'index.php?pf=tags/icon.png', 49 49 'large-icon' => 'index.php?pf=tags/icon-big.png', 50 'permissions' => 'usage,contentadmin' 50 51 )); 51 52 }
Note: See TracChangeset
for help on using the changeset viewer.