Fixing some locations to use the IsTeamAdmin function which properly checks for system admin permissions.
Этот коммит содержится в:
@@ -310,7 +310,7 @@ func (c *Context) IsSystemAdmin() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *Context) IsTeamAdmin(userId string) bool {
|
||||
func (c *Context) IsTeamAdmin() bool {
|
||||
if model.IsInRole(c.Session.Roles, model.ROLE_TEAM_ADMIN) || c.IsSystemAdmin() {
|
||||
return true
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user