private isGrantedAccountPermission ( string $accountRoleId, string $resourceId, string $permissionId ) : string | ||
$accountRoleId | string | The identifier of the account role |
$resourceId | string | The identifier of the ACL resource |
$permissionId | string | The identifier of the ACL permission |
return | string | Returns granted value |
private function isGrantedAccountPermission($accountRoleId, $resourceId, $permissionId)
{
return $this->db->GetOne("\n SELECT granted FROM acl_account_role_resource_permissions\n WHERE account_role_id = ? AND resource_id = ? AND perm_id = ?\n ", [$accountRoleId, $resourceId, $permissionId]);
}