public currentUserCan ( CurrentUserInterface $user, string $right, array $args = [] ) | ||
$user | CurrentUserInterface | Current user object, but be sure to implement CurrentUserInterface |
$right | string | Can be 'create', 'update', 'load', 'delete' |
$args | array | Arguments for operations (update, create, delete.. etc) |