From 7f7abc33cb5df3a93ee818c03df5848a6e9193fe Mon Sep 17 00:00:00 2001 From: camer0n Date: Fri, 6 Jun 2025 12:24:48 -0700 Subject: [PATCH] Issue #5489 Media-Manager preferences and avatars are now limited to the Main Admin. Media Categories are limited to those who specified access. --- e107_admin/image.php | 15 ++++++++------- e107_handlers/user_handler.php | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 5f54d18e3..320af623e 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -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/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'), - 'divider/01' => array('divider'=>true), - 'cat/list' => array('caption'=> 'LAN_IMA_M_03', 'perm' => 'A|A2'), - 'cat/create' => array('caption'=> 'LAN_IMA_M_04', 'perm' => 'A|A2'), // is automatic. - // 'main/settings' => array('caption'=> 'LAN_PREFS', 'perm' => 'A'), // legacy - 'divider/02' => array('divider'=>true), - 'main/prefs' => array('caption'=> 'LAN_PREFS', 'perm' => 'A'), - 'main/avatar' => array('caption'=> 'LAN_IMA_M_05', 'perm' => 'A') + + 'divider/01' => array('divider'=>true, 'perm'=>'A2'), + 'cat/list' => array('caption'=> 'LAN_IMA_M_03', 'perm' => 'A2'), + 'cat/create' => array('caption'=> 'LAN_IMA_M_04', 'perm' => 'A2'), // is automatic. + + 'divider/02' => array('divider'=>true, 'perm'=>'0'), + 'main/prefs' => array('caption'=> 'LAN_PREFS', 'perm' => '0'), + 'main/avatar' => array('caption'=> 'LAN_IMA_M_05', 'perm' => '0') ); protected $adminMenuIcon = 'e-images-24'; diff --git a/e107_handlers/user_handler.php b/e107_handlers/user_handler.php index 738d4c499..637e7e0e1 100644 --- a/e107_handlers/user_handler.php +++ b/e107_handlers/user_handler.php @@ -2176,11 +2176,11 @@ class e_userperms 'icon_16' => 'E_16_COMMENT', 'icon_32' => 'E_32_COMMENT', ], - '6' => [ + /* '6' => [ 'title' => 'LAN_MEDIAMANAGER', // File-Manager - Upload /manage files 'icon_16' => 'E_16_FILE', 'icon_32' => 'E_32_FILE', - ], + ],*/ 'A' => [ 'title' => ['LAN_MEDIAMANAGER', 'LAN_ALL'], 'separator' => ' (', // Media-Manager All Areas