add: user last_policy_consent
This commit is contained in:
parent
befd9096b1
commit
2edef9bd35
11 changed files with 107 additions and 9 deletions
|
@ -469,10 +469,15 @@ pub(crate) async fn initial_context(
|
|||
.check(SecondaryPermission::DEVELOPER_PASS),
|
||||
);
|
||||
ctx.insert("home", &ua.settings.default_timeline.relative_url());
|
||||
ctx.insert(
|
||||
"renew_policy_consent",
|
||||
&(ua.last_policy_consent < config.policies.last_updated),
|
||||
);
|
||||
} else {
|
||||
ctx.insert("is_helper", &false);
|
||||
ctx.insert("is_manager", &false);
|
||||
ctx.insert("home", &DefaultTimelineChoice::default().relative_url());
|
||||
ctx.insert("renew_policy_consent", &false);
|
||||
}
|
||||
|
||||
ctx.insert("lang", &lang.data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue