forked from ddrilling/AsbCloudServer
Add shorthand to check admins permissions
This commit is contained in:
parent
366a61cae5
commit
99a2592ace
@ -185,6 +185,9 @@ namespace AsbCloudInfrastructure.Services
|
||||
if (permissionInfo is null)
|
||||
return false;
|
||||
|
||||
if (rolesIds.Contains(1))
|
||||
return true;
|
||||
|
||||
var idPermissionInfo = permissionInfo.Id;
|
||||
var roles = cacheUserRoles.Where(r => rolesIds.Contains(r.Id));
|
||||
foreach (var role in roles)
|
||||
|
Loading…
Reference in New Issue
Block a user