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;
/**
/* 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 () {
<?php
namespace dns\system;
use dns\system\cache\builder\ControllerCacheBuilder;
-use dns\system\route\Literal;
-use dns\system\route\Regex;
use dns\system\route\Request;
use dns\system\route\Segment;
use Zend\Router\Http\RouteMatch;
*/
protected function init () {
$this->router = new SimpleRouteStack();
+
if (DNS::getSession()->username !== null) {
DNS::getTPL()->assign(array("username" => DNS::getSession()->username));
}
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 <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core\System\Cache\Builder
+ * @author Jan Altensen (Stricted)
+ * @copyright 2013-2016 Jan Altensen (Stricted)
*/
class AclCacheBuilder extends AbstractCacheBuilder {
/**