mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 09:32:32 +08:00
add plaform user role
This commit is contained in:
parent
a797875c9b
commit
87b585266e
2 changed files with 10 additions and 2 deletions
|
@ -23,7 +23,14 @@ var AdminPermissionTemplate = models.UserRolePermissionTemplate{
|
|||
}
|
||||
|
||||
var ServiceUserPermissionTemplate = models.UserRolePermissionTemplate{
|
||||
ID: models.ServiceUser,
|
||||
ID: models.ServiceUser,
|
||||
Default: true,
|
||||
FullAccess: false,
|
||||
DenyDashboardAccess: true,
|
||||
}
|
||||
|
||||
var PlatformUserUserPermissionTemplate = models.UserRolePermissionTemplate{
|
||||
ID: models.PlatformUser,
|
||||
Default: true,
|
||||
FullAccess: false,
|
||||
}
|
||||
|
|
|
@ -55,7 +55,8 @@ const (
|
|||
const (
|
||||
SuperAdminRole UserRole = "super_admin"
|
||||
AdminRole UserRole = "admin"
|
||||
ServiceUser UserRole = "user"
|
||||
ServiceUser UserRole = "service_user"
|
||||
PlatformUser UserRole = "platform_user"
|
||||
NetworkAdmin UserRole = "network_admin"
|
||||
NetworkUser UserRole = "network_user"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue