Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
PPTI-Mobile Apps Monitoring Wabah Tuberkolosis
Neza-Backend
Commits
896a5020
Commit
896a5020
authored
Jun 04, 2020
by
Jonathan Christopher Jakub
Browse files
[GREEN] Uncomment permission implementation
parent
b880ea57
Pipeline
#49744
failed with stages
in 1 minute and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/commons/permissions.py
View file @
896a5020
...
@@ -7,8 +7,8 @@ class IsAuthenticated(BasePermission):
...
@@ -7,8 +7,8 @@ class IsAuthenticated(BasePermission):
def
has_permission
(
self
,
request
,
view
):
def
has_permission
(
self
,
request
,
view
):
user
=
request
.
user
user
=
request
.
user
#
if not hasattr(user, "account"):
if
not
hasattr
(
user
,
"account"
):
#
return False
return
False
return
(
return
(
user
.
is_authenticated
user
.
is_authenticated
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment