From: Matthias Schmidt Date: Mon, 15 Aug 2011 14:22:21 +0000 (+0200) Subject: Removed SessionHandler::checkPermission() X-Git-Tag: 2.0.0_Beta_1~1859^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6caf2c7510e360899f10652212a674bb202bba29;p=GitHub%2FWoltLab%2FWCF.git Removed SessionHandler::checkPermission() --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index f1fa013278..f36c8ad6e7 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -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.