Added permissions as static str representation
This commit is contained in:
parent
ca804b334e
commit
fa1e1a886f
|
@ -23,6 +23,7 @@ use rocket_contrib::templates::Template;
|
|||
pub mod database;
|
||||
pub mod helper;
|
||||
pub mod modules;
|
||||
pub mod permissions;
|
||||
pub mod schema;
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -0,0 +1,76 @@
|
|||
pub mod modules {
|
||||
pub mod dashboard {
|
||||
pub const VIEW: &'static str = "modules.dashboard.view";
|
||||
}
|
||||
pub mod member_management {
|
||||
pub const SEARCH: &'static str = "modules.member_management.search";
|
||||
pub const VIEW: &'static str = "modules.member_management.view";
|
||||
pub mod list {
|
||||
pub const VIEW: &'static str = "modules.member_management.list.view";
|
||||
}
|
||||
pub mod groups {
|
||||
pub const VIEW: &'static str = "modules.member_management.groups.view";
|
||||
pub const EDIT: &'static str = "modules.member_management.groups.edit";
|
||||
pub const CREATE: &'static str = "modules.member_management.groups.create";
|
||||
pub const DELETE: &'static str = "modules.member_management.groups.delete";
|
||||
|
||||
pub mod members {
|
||||
pub const VIEW: &'static str = "modules.member_management.groups.members.view";
|
||||
pub const EDIT: &'static str = "modules.member_management.groups.members.edit";
|
||||
}
|
||||
|
||||
pub mod core {
|
||||
pub const EDIT: &'static str = "modules.member_management.groups.core.edit";
|
||||
}
|
||||
}
|
||||
pub mod profile {
|
||||
pub const VIEW: &'static str = "modules.member_management.profile.view";
|
||||
pub const EDIT: &'static str = "modules.member_management.profile.edit";
|
||||
pub const CREATE: &'static str = "modules.member_management.profile.create";
|
||||
pub const DELETE: &'static str = "modules.member_management.profile.delete";
|
||||
pub mod qualifications {
|
||||
pub const VIEW: &'static str =
|
||||
"modules.member_management.profile.qualification.view";
|
||||
pub const EDIT: &'static str =
|
||||
"modules.member_management.profile.qualifications.edit";
|
||||
}
|
||||
pub mod image {
|
||||
pub const VIEW: &'static str = "modules.member_management.profile.image.view";
|
||||
pub const EDIT: &'static str = "modules.member_management.profile.image.edit";
|
||||
}
|
||||
pub mod drive_permissions_licenses {
|
||||
pub const VIEW: &'static str =
|
||||
"modules.member_management.profile.drive_permissions_licenses.view";
|
||||
pub const EDIT: &'static str =
|
||||
"modules.member_management.profile.drive_permissions_licenses.edit";
|
||||
}
|
||||
pub mod communication {
|
||||
pub const VIEW: &'static str =
|
||||
"modules.member_management.profile.communication.view";
|
||||
pub const EDIT: &'static str =
|
||||
"modules.member_management.profile.communication.edit";
|
||||
}
|
||||
pub mod list {
|
||||
pub const VIEW: &'static str = "modules.member_management.list.view";
|
||||
}
|
||||
pub mod groups {
|
||||
pub const VIEW: &'static str = "modules.member_management.profile.groups.view";
|
||||
pub const EDIT: &'static str = "modules.member_management.profile.groups.edit";
|
||||
}
|
||||
pub mod core {
|
||||
pub const EDIT: &'static str = "modules.member_management.profile.core.edit";
|
||||
}
|
||||
}
|
||||
}
|
||||
pub mod event_management {
|
||||
pub const VIEW: &'static str = "modules.event_management.view";
|
||||
}
|
||||
pub mod configuration {
|
||||
pub mod fields {
|
||||
pub mod communication_types {
|
||||
pub const VIEW: &'static str =
|
||||
"modules.configuration.fields.communication_types.view";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue