Skip to main content

Mountain/IPC/Permission/Role/ManageRole/
CreateAdminRole.rs

1#![allow(non_snake_case)]
2
3//! Standard `admin` role - full access including system /
4//! external / execute and `role.manage` for changing role
5//! definitions at runtime.
6
7use crate::IPC::Permission::Role::ManageRole::Role;
8
9pub fn Fn() -> Role::Struct {
10	Role::Struct::New(
11		"admin".to_string(),
12		vec![
13			"file.read".to_string(),
14			"file.write".to_string(),
15			"config.read".to_string(),
16			"config.update".to_string(),
17			"storage.read".to_string(),
18			"storage.write".to_string(),
19			"system.external".to_string(),
20			"system.execute".to_string(),
21			"admin.manage".to_string(),
22		],
23		"Administrator with full access".to_string(),
24	)
25	.AddPermission("role.manage".to_string())
26}