mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-13 08:32:47 +00:00
27 lines
742 B
Go
27 lines
742 B
Go
package data
|
|
|
|
// This is name key for the different roles
|
|
const (
|
|
// RoleSystem is the system role
|
|
// is is reserved for system actions only
|
|
RoleSystem = "system"
|
|
// RoleSuperAdministrator is the super administrator role
|
|
// this role has access to everything a user can do
|
|
RoleSuperAdministrator = "superadministrator"
|
|
// RoleCompanyAdministrator is the company role
|
|
// this role had read access to their associated company
|
|
RoleCompanyUser = "companyuser"
|
|
)
|
|
|
|
// RolePermissions is a map of roles to their permissions
|
|
// these are the roles and their permissions
|
|
var RolePermissions = map[string][]string{
|
|
RoleSystem: {
|
|
PERMISSION_ALLOW_GLOBAL,
|
|
},
|
|
RoleSuperAdministrator: {
|
|
PERMISSION_ALLOW_GLOBAL,
|
|
},
|
|
RoleCompanyUser: {},
|
|
}
|