Merge release branch 'release-1.0.0'

Этот коммит содержится в:
Christopher Speller
2015-09-30 15:38:15 -04:00
родитель 46f86e7076 ad92a90b02
Коммит 2d3ddfd467
14 изменённых файлов: 178 добавлений и 40 удалений

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

@@ -304,10 +304,14 @@ 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
// 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
// This function should not be used to check permissions.
func IsInRole(userRoles string, inRole string) bool {
roles := strings.Split(userRoles, " ")