1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Issue #5489 Media-Manager preferences and avatars are now limited to the Main Admin. Media Categories are limited to those who specified access.

This commit is contained in:
camer0n
2025-06-06 12:24:48 -07:00
parent 0a22773e9d
commit 7f7abc33cb
2 changed files with 10 additions and 9 deletions

View File

@@ -139,13 +139,14 @@ class media_admin extends e_admin_dispatcher
'main/grid' => array('caption'=> 'LAN_IMA_M_01', 'perm' => 'A', 'icon'=>'fas-grip'), 'main/grid' => array('caption'=> 'LAN_IMA_M_01', 'perm' => 'A', 'icon'=>'fas-grip'),
// 'main/create' => array('caption'=> "Add New Media", 'perm' => 'A'), // Should be handled in Media-Import. // 'main/create' => array('caption'=> "Add New Media", 'perm' => 'A'), // Should be handled in Media-Import.
'main/import' => array('caption'=> 'LAN_IMA_M_02', 'perm' => 'A|A1', 'icon'=>'fa-upload'), 'main/import' => array('caption'=> 'LAN_IMA_M_02', 'perm' => 'A|A1', 'icon'=>'fa-upload'),
'divider/01' => array('divider'=>true),
'cat/list' => array('caption'=> 'LAN_IMA_M_03', 'perm' => 'A|A2'), 'divider/01' => array('divider'=>true, 'perm'=>'A2'),
'cat/create' => array('caption'=> 'LAN_IMA_M_04', 'perm' => 'A|A2'), // is automatic. 'cat/list' => array('caption'=> 'LAN_IMA_M_03', 'perm' => 'A2'),
// 'main/settings' => array('caption'=> 'LAN_PREFS', 'perm' => 'A'), // legacy 'cat/create' => array('caption'=> 'LAN_IMA_M_04', 'perm' => 'A2'), // is automatic.
'divider/02' => array('divider'=>true),
'main/prefs' => array('caption'=> 'LAN_PREFS', 'perm' => 'A'), 'divider/02' => array('divider'=>true, 'perm'=>'0'),
'main/avatar' => array('caption'=> 'LAN_IMA_M_05', 'perm' => 'A') 'main/prefs' => array('caption'=> 'LAN_PREFS', 'perm' => '0'),
'main/avatar' => array('caption'=> 'LAN_IMA_M_05', 'perm' => '0')
); );
protected $adminMenuIcon = 'e-images-24'; protected $adminMenuIcon = 'e-images-24';

View File

@@ -2176,11 +2176,11 @@ class e_userperms
'icon_16' => 'E_16_COMMENT', 'icon_16' => 'E_16_COMMENT',
'icon_32' => 'E_32_COMMENT', 'icon_32' => 'E_32_COMMENT',
], ],
'6' => [ /* '6' => [
'title' => 'LAN_MEDIAMANAGER', // File-Manager - Upload /manage files 'title' => 'LAN_MEDIAMANAGER', // File-Manager - Upload /manage files
'icon_16' => 'E_16_FILE', 'icon_16' => 'E_16_FILE',
'icon_32' => 'E_32_FILE', 'icon_32' => 'E_32_FILE',
], ],*/
'A' => [ 'A' => [
'title' => ['LAN_MEDIAMANAGER', 'LAN_ALL'], 'title' => ['LAN_MEDIAMANAGER', 'LAN_ALL'],
'separator' => ' (', // Media-Manager All Areas 'separator' => ' (', // Media-Manager All Areas