diff options
author | David Lu <david.lu@hotmail.com> | 2016-06-30 08:43:46 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-06-30 08:43:46 -0400 |
commit | 1c8962cf9981edf14933264bc060168723e0bde1 (patch) | |
tree | ae7b4de755e54f870d8ab4293d419c47466b9437 /model | |
parent | 65e18ad1f553d91c28b444afaced08f462f9d374 (diff) | |
download | chat-1c8962cf9981edf14933264bc060168723e0bde1.tar.gz chat-1c8962cf9981edf14933264bc060168723e0bde1.tar.bz2 chat-1c8962cf9981edf14933264bc060168723e0bde1.zip |
enabled team creation for sysadmins (#3433)
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/user.go b/model/user.go index 6866dbbb8..1047cc429 100644 --- a/model/user.go +++ b/model/user.go @@ -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, " ") |