mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
Merge branch 'fixes/release-v1.5.1' of https://github.com/gravitl/netmaker into fixes/release-v1.5.1
This commit is contained in:
@@ -106,7 +106,8 @@ func listUserActivity(w http.ResponseWriter, r *http.Request) {
|
||||
logic.ReturnErrorResponse(w, r, logic.FormatError(err, "internal"))
|
||||
return
|
||||
}
|
||||
if caller.Username != username && caller.PlatformRoleID != schema.SuperAdminRole && caller.PlatformRoleID != schema.AdminRole {
|
||||
if caller.Username != username && caller.PlatformRoleID != schema.SuperAdminRole &&
|
||||
caller.PlatformRoleID != schema.AdminRole && caller.PlatformRoleID != schema.Auditor {
|
||||
logic.ReturnErrorResponse(w, r, models.ErrorResponse{
|
||||
Code: http.StatusForbidden,
|
||||
Message: "you are not authorized to view this user's activity",
|
||||
|
||||
Reference in New Issue
Block a user