This is a typically fast call. Usually, it just reads the user profile
to check a timestamp. At most once per hour, it will make an external
call to see if the user's external-group memberships have changed.
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1123
6d9bc8c9-1ec2-4278-b937-
99fde70a366f
</form>
</div>
<div id="welcome" py:if="user.is_authenticated()">
- <strong style="padding-right: 18px;">Welcome, ${user.first_name or user.username}!</strong>
- <a href="${ROOT}${settings.LOGOUT_URL}">Log Out</a>
- • <a href="${ROOT}/prefs/">Preferences</a>
+ <?python user.maybe_refresh_external_memberships() ?>
+ <strong style="padding-right: 18px;">Welcome, ${user.first_name or user.username}!</strong>
+ <a href="${ROOT}${settings.LOGOUT_URL}">Log Out</a>
+ • <a href="${ROOT}/prefs/">Preferences</a>
</div>
<div id="welcome" py:if="not user.is_authenticated()">
<strong style="padding-right: 18px;">Welcome!</strong>