Fakultas Ilmu Komputer UI

Commit 896a5020 authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

[GREEN] Uncomment permission implementation

parent b880ea57
Pipeline #49744 failed with stages
in 1 minute and 28 seconds
...@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment