Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PKPL-Individu-2306275613-Reyvano Mario Sianturi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reyvano Mario Sianturi
PKPL-Individu-2306275613-Reyvano Mario Sianturi
Commits
1efd6e6b
Commit
1efd6e6b
authored
1 month ago
by
Reyvano Mario Sianturi
Browse files
Options
Downloads
Patches
Plain Diff
update role
parent
b91d0e9d
Branches
week-07
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main/templates/home.html
+2
-1
2 additions, 1 deletion
main/templates/home.html
main/views.py
+1
-1
1 addition, 1 deletion
main/views.py
markdown.md
+6
-1
6 additions, 1 deletion
markdown.md
with
9 additions
and
3 deletions
main/templates/home.html
+
2
−
1
View file @
1efd6e6b
{% extends 'base.html' %}
{% block content %}
<h1>
Welcome, {{ user.nama }}, role {{ user.role }}
</h1>
<h1>
Welcome, {{ user.nama }}
</h1>
<h1>
Role: {{ user.role }}
</h1>
{% if user.role == 'admin' and is_staff %}
<div
class=
"admin-panel"
>
...
...
This diff is collapsed.
Click to expand it.
main/views.py
+
1
−
1
View file @
1efd6e6b
...
...
@@ -111,7 +111,7 @@ def create_normal_user(request):
custom_user
.
user
=
user
custom_user
.
role
=
"
normal
"
custom_user
.
role
=
"
normal
user
"
custom_user
.
save
()
...
...
This diff is collapsed.
Click to expand it.
markdown.md
+
6
−
1
View file @
1efd6e6b
Admin
username: halo
password: halopass
\ No newline at end of file
password: halopass
User Biasa
username: normaluser
password: normaluserpass
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment