Quellcode durchsuchen

Fix session admin can't see the session list - Refs BT#11373

José Loguercio vor 8 Jahren
Ursprung
Commit
dec94a645f
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      main/inc/lib/sessionmanager.lib.php

+ 2 - 1
main/inc/lib/sessionmanager.lib.php

@@ -3853,6 +3853,7 @@ class SessionManager
      * Protect a session to be edited.
      * Protect a session to be edited.
      * @param int $id
      * @param int $id
      * @param bool $checkSession
      * @param bool $checkSession
+     * @return mixed | bool true if pass the check, api_not_allowed otherwise
      */
      */
     public static function protectSession($id, $checkSession = true)
     public static function protectSession($id, $checkSession = true)
     {
     {
@@ -3951,7 +3952,7 @@ class SessionManager
      */
      */
     public static function allowManageAllSessions()
     public static function allowManageAllSessions()
     {
     {
-        if (api_is_platform_admin()) {
+        if (api_is_platform_admin() || api_is_session_admin()) {
             return true;
             return true;
         }
         }