Bluz\Auth\AbstractRowEntity::hasPrivilege PHP 메소드

hasPrivilege() 공개 메소드

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