Fixing some locations to use the IsTeamAdmin function which properly checks for system admin permissions.

Этот коммит содержится в:
Christopher Speller
2015-09-30 11:30:11 -04:00
родитель 89b77cc72f
Коммит 7d31f3a271
7 изменённых файлов: 15 добавлений и 11 удалений

Просмотреть файл

@@ -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
}