Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-FiBu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Katharineum zu Lübeck
AlekSIS-App-FiBu
Commits
7fa1d860
Commit
7fa1d860
authored
5 years ago
by
Frank Poetzsch-Heffter
Browse files
Options
Downloads
Patches
Plain Diff
hide 'Anträge' for users, set new permission check_booking
parent
8e08777d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/apps/fibu/models.py
+1
-0
1 addition, 0 deletions
biscuit/apps/fibu/models.py
biscuit/apps/fibu/views.py
+1
-1
1 addition, 1 deletion
biscuit/apps/fibu/views.py
with
2 additions
and
1 deletion
biscuit/apps/fibu/models.py
+
1
−
0
View file @
7fa1d860
...
...
@@ -86,4 +86,5 @@ class Booking(models.Model):
permissions
=
[
(
'
manage_booking
'
,
'
Can manage bookings
'
),
(
'
request_booking
'
,
'
Can request a booking
'
),
(
'
check_booking
'
,
'
Can check bookings
'
),
]
This diff is collapsed.
Click to expand it.
biscuit/apps/fibu/views.py
+
1
−
1
View file @
7fa1d860
...
...
@@ -73,7 +73,7 @@ def edit(request, id):
@login_required
@permission_required
(
'
fibu.
manage
_booking
'
)
@permission_required
(
'
fibu.
check
_booking
'
)
def
check
(
request
):
if
request
.
method
==
'
POST
'
:
if
'
booking-id
'
in
request
.
POST
:
...
...
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