Add Rolegroup ServiceSuperadmin
continuous-integration/drone/tag Build is passing Details

main v0.3.5
René Jochum 1 year ago
parent 81093a96cc
commit 34fbffdc1e
Signed by: jochum
GPG Key ID: F7D906F5E51E8E5E

@ -10,6 +10,7 @@ var RolesAdmin = []string{ROLE_ADMIN, ROLE_SUPERADMIN}
var RolesUsersAndAdmin = []string{ROLE_USER, ROLE_ADMIN, ROLE_SUPERADMIN}
var RolesServiceAndUsersAndAdmin = []string{ROLE_SERVICE, ROLE_USER, ROLE_ADMIN, ROLE_SUPERADMIN}
var RolesServiceAndAdmin = []string{ROLE_SERVICE, ROLE_ADMIN, ROLE_SUPERADMIN}
var RolesServiceAndSuperadmin = []string{ROLE_SERVICE, ROLE_SUPERADMIN}
var RolesAllAndAnon = []string{ROLE_SERVICE, ROLE_SUPERADMIN, ROLE_ADMIN, ROLE_USER, ROLE_ANONYMOUS}
func HasRole(user *User, role string) bool {

Loading…
Cancel
Save