1969416e64
Also added the derective osPerms to check if the current user has permissions. Removed old Django views and urls for user. Created utils.views.APIView which should be used instead of the AjaxView. Fixes: #1470 Fixes: #1454
33 lines
687 B
Python
33 lines
687 B
Python
from django.conf.urls import patterns, url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^csv_import/$',
|
|
views.UserCSVImportView.as_view(),
|
|
name='user_csv_import'),
|
|
|
|
# PDF
|
|
url(r'^print/$',
|
|
views.UsersListPDF.as_view(),
|
|
name='user_print'),
|
|
|
|
url(r'^passwords/print/$',
|
|
views.UsersPasswordsPDF.as_view(),
|
|
name='print_passwords'),
|
|
|
|
# auth
|
|
url(r'^login/$',
|
|
views.UserLoginView.as_view(),
|
|
name='user_login'),
|
|
|
|
url(r'^logout/$',
|
|
views.UserLogoutView.as_view(),
|
|
name='user_logout'),
|
|
|
|
url(r'^whoami/$',
|
|
views.WhoAmIView.as_view(),
|
|
name='user_whoami'),
|
|
)
|