From ac94d3194d319a83e40f8eae7ade5c4f96257fad Mon Sep 17 00:00:00 2001 From: Stricted Date: Mon, 18 Jul 2016 05:16:47 +0200 Subject: [PATCH] remove unused imports --- lib/system/AclHandler.class.php | 6 ------ lib/system/RequestHandler.class.php | 3 +-- lib/system/cache/builder/AclCacheBuilder.class.php | 8 ++------ 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/lib/system/AclHandler.class.php b/lib/system/AclHandler.class.php index 90a6ae5..8b2ccda 100644 --- a/lib/system/AclHandler.class.php +++ b/lib/system/AclHandler.class.php @@ -3,8 +3,6 @@ namespace dns\system; use dns\system\cache\builder\AclCacheBuilder; use dns\system\cache\builder\DomainCacheBuilder; use dns\system\cache\builder\UserCacheBuilder; -use Zend\Permissions\Acl\Resource\GenericResource as Resource; -use Zend\Permissions\Acl\Role\GenericRole as Role; use Zend\Permissions\Acl\Acl; /** @@ -34,12 +32,8 @@ class AclHandler extends SingletonFactory { /* ass assignments */ foreach ($permissions as $permission) { - var_dump($permission); $this->acl->allow((string)$permission['userID'], (string)$permission['soaID']); } - - var_dump($this->acl->getRole(1)); - exit; } protected function resetCache () { diff --git a/lib/system/RequestHandler.class.php b/lib/system/RequestHandler.class.php index 813f5ec..156e3df 100644 --- a/lib/system/RequestHandler.class.php +++ b/lib/system/RequestHandler.class.php @@ -1,8 +1,6 @@ router = new SimpleRouteStack(); + if (DNS::getSession()->username !== null) { DNS::getTPL()->assign(array("username" => DNS::getSession()->username)); } diff --git a/lib/system/cache/builder/AclCacheBuilder.class.php b/lib/system/cache/builder/AclCacheBuilder.class.php index 5c4107d..d885370 100644 --- a/lib/system/cache/builder/AclCacheBuilder.class.php +++ b/lib/system/cache/builder/AclCacheBuilder.class.php @@ -3,12 +3,8 @@ namespace dns\system\cache\builder; use dns\system\DNS; /** - * Caches the simple ACL settings per object type. - * - * @author Alexander Ebert - * @copyright 2001-2016 WoltLab GmbH - * @license GNU Lesser General Public License - * @package WoltLabSuite\Core\System\Cache\Builder + * @author Jan Altensen (Stricted) + * @copyright 2013-2016 Jan Altensen (Stricted) */ class AclCacheBuilder extends AbstractCacheBuilder { /** -- 2.20.1