Files
phishingclub/backend/data/roles.go
2025-08-21 16:14:09 +02:00

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: {},
}