-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create user list view #69
Conversation
usaon_vta_survey/templates/macros/user_login_management_buttons.j2
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but would like a little bit of messaging if the user is not logged in and somehow makes it to that page. E.g. bookmarks it.
{% block content %} | ||
<h2>{% block title %}Users{% endblock %}</h1> | ||
|
||
{% if not current_user.role=='admin' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work as expected for logged out users? I'd expect an error like undefined has no attribute 'role'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this to reflect that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my other comment; if this works as expected for both logged out users (I think this may be a problem) and non-admins, looks good to me!
Resolves #64