This commit is contained in:
2020-08-26 22:42:38 +00:00
parent 915076aea7
commit 4ea07ada85

View File

@@ -259,8 +259,15 @@ namespace AyaNova.Biz
effectiveRoles = effectiveUser.Roles; effectiveRoles = effectiveUser.Roles;
} }
if (!AyaNova.Api.ControllerHelpers.Authorized.HasReadFullRole(effectiveRoles, report.ObjectType))
{
AddError(ApiErrorCode.NOT_AUTHORIZED, null, $"User not authorized for {report.ObjectType} type object");
return null;
}
//Get data
//initialization //initialization