Bluz\Auth\AbstractRowEntity::hasPrivilege PHP Method

hasPrivilege() public method

Has role a privilege
public hasPrivilege ( string $module, string $privilege ) : boolean
$module string
$privilege string
return boolean
    public function hasPrivilege($module, $privilege)
    {
        $privileges = $this->getPrivileges();
        return in_array($module . ':' . $privilege, $privileges);
    }