fix resp msg

This commit is contained in:
abhishek9686 2024-08-09 08:59:35 +05:30
parent 30e1272ae9
commit 088c108b93

View file

@ -163,7 +163,7 @@ func GlobalPermissionsCheck(username string, r *http.Request) error {
}
rsrcPermissionScope, ok := userRole.GlobalLevelAccess[models.RsrcType(targetRsrc)]
if !ok {
return fmt.Errorf("access denied to %s rsrc", targetRsrc)
return fmt.Errorf("access denied to %s", targetRsrc)
}
if allRsrcsTypePermissionScope, ok := rsrcPermissionScope[models.RsrcID(fmt.Sprintf("all_%s", targetRsrc))]; ok {
return checkPermissionScopeWithReqMethod(allRsrcsTypePermissionScope, r.Method)