mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Can access admin logs from the API
This commit is contained in:
@@ -273,7 +273,7 @@ pub mod admin {
|
||||
pub enum AdminRole {
|
||||
MANAGE_ADMINS,
|
||||
MANAGE_USERS,
|
||||
ACCESS_FULL_ADMIN_LOGS,
|
||||
ACCESS_ALL_ADMINS_LOGS,
|
||||
}
|
||||
|
||||
pub struct AdminRoleMetadata {
|
||||
@@ -297,10 +297,10 @@ pub mod admin {
|
||||
description: "Allow the admin to list, reset password and delete Comunic users",
|
||||
},
|
||||
AdminRoleMetadata {
|
||||
role: AdminRole::ACCESS_FULL_ADMIN_LOGS,
|
||||
id: "access_full_admin_logs",
|
||||
name: "Access full admin logs",
|
||||
description: "Allow the admin to access the action history of all admins",
|
||||
role: AdminRole::ACCESS_ALL_ADMINS_LOGS,
|
||||
id: "access_all_admins_logs",
|
||||
name: "Access all admins logs",
|
||||
description: "Allow the admin to access the action history (log) of all admins",
|
||||
}
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user