Open
Bug 1909734
Opened 1 year ago
Improve user_is_authenticated and user_has_phabricator_token variables
Categories
(Conduit :: Lando, enhancement)
Conduit
Lando
Tracking
(Not tracked)
NEW
People
(Reporter: zeid, Unassigned)
References
Details
The variables are defined in templates, however, they can instead call a method with the user instance, and exist outside of templates. For example:
{% set user_has_phabricator_token = get_user_has_phabricator_token(request.user) %}
And in the Jinja env, define this global:
def get_user_has_phabricator_token(user):
...
You need to log in
before you can comment on or make changes to this bug.
Description
•