src/Reflex/Lockdown/Lockdown.php
public function giveUserPermission($user, $permission, $level = 'allow')
    {
        $this->checkPermissionLevel($level);

        $user           =   $this->findUserById($user);
        $permission     =   $this->findPermissionByKey($permission);

        return $user->give($permission, $level);
    }
public function giveUserPermission($user, $permission, $level = 'allow')
    {
        $this->checkPermissionLevel($level);

        $user           =   $this->findUserById($user);
        $permission     =   $this->findPermissionByKey($permission);

        return $user->give($permission, $level);
    }
public function giveUserPermission ( $ user , $ permission , $ level = 'allow' ) { $ this -> checkPermissionLevel ( $ level ) ; $ user = $ this -> findUserById ( $ user ) ; $ permission = $ this -> findPermissionByKey ( $ permission ) ; return $ user -> give ( $ permission , $ level ) ; }
Give a user a permission
@param  Reflex\Lockdown\Users\UserInterface|string             $user
@param  Reflex\Lockdown\Permissions\PermissionInterface|string $permission
@param  string                                                 $level
@return boolean
Give a user a permission