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

        $role       =   $this->findRoleByKey($role);
        $permission =   $this->findPermissionByKey($permission);

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

        $role       =   $this->findRoleByKey($role);
        $permission =   $this->findPermissionByKey($permission);

        return $role->give($permission, $level);
    }
public function giveRolePermission ( $ role , $ permission , $ level = 'allow' ) { $ this -> checkPermissionLevel ( $ level ) ; $ role = $ this -> findRoleByKey ( $ role ) ; $ permission = $ this -> findPermissionByKey ( $ permission ) ; return $ role -> give ( $ permission , $ level ) ; }
Give a role a permission
@param  Reflex\Lockdown\Roles\RoleInterface|string             $role
@param  Reflex\Lockdown\Permissions\PermissionInterface|string $permission
@param  string                                                 $level
@return boolean
Give a role a permission