Skip to content

Commit

Permalink
Merge pull request #99 from iandyh/ownership-2
Browse files Browse the repository at this point in the history
system account user is also an admin
  • Loading branch information
iandyh authored Dec 19, 2023
2 parents 3b7c61a + c2206cb commit ba76348
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shibuya/model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ func (a *Account) IsAdmin() bool {
}
}
}
// systemuser is the user used for LDAP auth. If a user login with that account
// we can also treat it as a admin
if a.Name == config.SC.AuthConfig.SystemUser {
return true
}
return false
}

0 comments on commit ba76348

Please sign in to comment.