mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-13 16:44:52 +08:00
fix resp msg
This commit is contained in:
parent
30e1272ae9
commit
088c108b93
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue