/** * Compile all permissions using the managed entities permissions as static overrides * * @access private * @return void */ private function refresh() { foreach ($this->entity->getPermissions() as $target => $permissions) { $this->permissions[strtolower($target)] = array_map('strtolower', $permissions); } foreach ($this->permissions as $target => $permissions) { $this->permissions[$target] = array_unique($permissions); } }