enabled team creation for sysadmins (#3433)

Этот коммит содержится в:
David Lu
2016-06-30 08:43:46 -04:00
коммит произвёл Joram Wilander
родитель 65e18ad1f5
Коммит 1c8962cf99
5 изменённых файлов: 19 добавлений и 5 удалений

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

@@ -362,13 +362,13 @@ func isValidRole(role string) bool {
return false
}
// Make sure you acually want to use this function. In context.go there are functions to check permssions
// Make sure you acually want to use this function. In context.go there are functions to check permissions
// This function should not be used to check permissions.
func (u *User) IsInRole(inRole string) bool {
return IsInRole(u.Roles, inRole)
}
// Make sure you acually want to use this function. In context.go there are functions to check permssions
// Make sure you acually want to use this function. In context.go there are functions to check permissions
// This function should not be used to check permissions.
func IsInRole(userRoles string, inRole string) bool {
roles := strings.Split(userRoles, " ")