mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-15 01:55:58 +02:00
Add Custom Roles group and policy permissions (#7962)
This commit is contained in:
5 files changed
+217
-76
No files matched your search
@@ -248,6 +248,8 @@ pub enum CustomPermission {
|
||||
/// grant of any other one grants nothing. They are implemented one at a time, so this grows with them.
|
||||
const SUPPORTED_CUSTOM_PERMISSIONS: &[CustomPermission] = &[
|
||||
CustomPermission::ManageUsers,
|
||||
CustomPermission::ManageGroups,
|
||||
CustomPermission::ManagePolicies,
|
||||
CustomPermission::CreateNewCollections,
|
||||
CustomPermission::EditAnyCollection,
|
||||
CustomPermission::DeleteAnyCollection,
|
||||
@@ -1612,7 +1614,7 @@ mod tests {
|
||||
}
|
||||
assert_eq!(
|
||||
SUPPORTED_CUSTOM_PERMISSIONS,
|
||||
[ManageUsers, CreateNewCollections, EditAnyCollection, DeleteAnyCollection]
|
||||
[ManageUsers, ManageGroups, ManagePolicies, CreateNewCollections, EditAnyCollection, DeleteAnyCollection]
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user