Skip to content
Snippets Groups Projects
Commit 5ce6c6d3 authored by Half-Shot's avatar Half-Shot
Browse files

Add a || user.IsShared

parent 650715ae
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ func RequireRepoAdmin(generator GeneratorWithUserFn) GeneratorFn { ...@@ -17,7 +17,7 @@ func RequireRepoAdmin(generator GeneratorWithUserFn) GeneratorFn {
panic(errors.New("safety check failed: Repo admin access check received empty user ID")) panic(errors.New("safety check failed: Repo admin access check received empty user ID"))
} }
if !util.IsGlobalAdmin(user.UserId) { if !util.IsGlobalAdmin(user.UserId) || user.IsShared {
return _responses.AuthFailed() return _responses.AuthFailed()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment