\User\Model\TablePermissionsTable

Represents "permissions" database table.

Summary

Methods
Properties
Constants
initialize()
check()
afterSave()
afterDelete()
clearCache()
$Acos
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$Acos

$Acos : \User\Model\Table\AcosTable

Type

\User\Model\Table\AcosTable

Methods

initialize()

initialize(array $config) : void

Initialize a table instance. Called after the constructor.

Parameters

array $config

Configuration options passed to the constructor

check()

check(\User\Model\Entity\User $user, string $path) : boolean

Checks if the given $user has access to the given $path

Parameters

\User\Model\Entity\User $user

An user entity

string $path

An ACO path. e.g. /Plugin/Controller/action

Returns

boolean —

true if user has access to action in ACO, false otherwise

afterSave()

afterSave(\Cake\Event\Event $event) : void

Clear permissions cache when permissions have changed.

Parameters

\Cake\Event\Event $event

The event that was triggered

afterDelete()

afterDelete(\Cake\Event\Event $event) : void

Clear permissions cache when permissions have changed.

Parameters

\Cake\Event\Event $event

The event that was triggered

clearCache()

clearCache() : void

Clear permissions cache for all users.