add: ability to disable profile theme of other users
This commit is contained in:
parent
e8ae7902b6
commit
a8282a113d
29 changed files with 77 additions and 52 deletions
|
@ -240,6 +240,7 @@ pub(crate) async fn initial_context(
|
|||
let mut ctx = Context::new();
|
||||
ctx.insert("config", &config);
|
||||
ctx.insert("user", &user);
|
||||
ctx.insert("use_user_theme", &true);
|
||||
|
||||
if let Some(ua) = user {
|
||||
ctx.insert("is_helper", &ua.permissions.check_helper());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue