1
0
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:
2021-07-10 19:40:41 +02:00
parent b20c261c7d
commit 5d97ca18cb
10 changed files with 86 additions and 11 deletions

View File

@@ -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",
}
];
}