mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-05 05:48:36 +02:00
[PR 1] Add experimental Custom Roles foundation (#7847)
This commit is contained in:
20 files changed
+621
-68
No files matched your search
+2
-1
@@ -20,7 +20,7 @@ use crate::{
|
||||
crypto::sha256_hex,
|
||||
db::{
|
||||
DbConn,
|
||||
models::{AttachmentId, CipherId},
|
||||
models::{AttachmentId, CipherId, custom_roles_enabled},
|
||||
},
|
||||
error::Error,
|
||||
util::{Cached, EtagCached},
|
||||
@@ -90,6 +90,7 @@ fn vaultwarden_css() -> EtagCached<String> {
|
||||
|
||||
// Else, there is either no cache, or reload_templates is true and we need to rebuild the CSS
|
||||
let css_options = json!({
|
||||
"custom_roles_enabled": custom_roles_enabled(),
|
||||
"email_change_allowed": CONFIG.email_change_allowed(),
|
||||
"emergency_access_allowed": CONFIG.emergency_access_allowed(),
|
||||
"load_user_scss": true,
|
||||
|
||||
Reference in new issue
Block a user