Skip to content

Commit

Permalink
GET /users/{username}
Browse files Browse the repository at this point in the history
  • Loading branch information
aksareen committed May 23, 2017
1 parent b9d44ae commit 94700c7
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 26 deletions.
3 changes: 1 addition & 2 deletions auslib/web/admin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SpecificPermissionView, UserRolesView, UserRoleView, \
PermissionScheduledChangesView, PermissionScheduledChangeView, \
EnactPermissionScheduledChangeView, PermissionScheduledChangeHistoryView, \
PermissionScheduledChangeSignoffsView, SpecificUserView
PermissionScheduledChangeSignoffsView
from auslib.web.admin.views.releases import SingleLocaleView, \
SingleReleaseView, ReleaseHistoryView, \
ReleasesAPIView, SingleReleaseColumnView, ReleaseReadOnlyView, \
Expand Down Expand Up @@ -100,7 +100,6 @@ def add_security_headers(response):
# and the static admin UI are hosted on the same domain. This API wsgi app is
# hosted at "/api", which is stripped away by the web server before we see
# these requests.
app.add_url_rule("/users/<username>", view_func=SpecificUserView.as_view("specific_user"))
app.add_url_rule("/users/<username>/permissions", view_func=PermissionsView.as_view("user_permissions"))
app.add_url_rule("/users/<username>/permissions/<permission>", view_func=SpecificPermissionView.as_view("specific_permission"))
app.add_url_rule("/users/<username>/roles", view_func=UserRolesView.as_view("user_roles"))
Expand Down

0 comments on commit 94700c7

Please sign in to comment.