Removed SessionHandler::checkPermission()
authorMatthias Schmidt <gravatronics@live.com>
Mon, 15 Aug 2011 14:22:21 +0000 (16:22 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 15 Aug 2011 14:22:21 +0000 (16:22 +0200)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index f1fa013278b1d39b61d0ea81b9fc4234760ce857..f36c8ad6e7798affc28e013ce3d05c489cedb454 100644 (file)
@@ -397,20 +397,6 @@ class SessionHandler extends SingletonFactory {
                return $this->groupData[$permission];
        }
        
-       /**
-        * Checks the requested permission, throws a PermissionDeniedException
-        * if the permission is false.
-        * 
-        * @deprecated  use checkPermissions()
-        */
-       public function checkPermission($permissions) {
-               if (!is_array($permissions)) {
-                       $permissions = array($permissions);
-               }
-               
-               $this->checkPermissions($permissions);
-       }
-       
        /**
         * Checks if the active user has the given permissions and throws a 
         * PermissionDeniedException if that isn't the case.