Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Official
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
1compluningi
Official
Commits
b642870e
Verified
Commit
b642870e
authored
2 years ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Adjust permission names to Room migration
parent
b80f822b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/chronos/util/chronos_helpers.py
+1
-1
1 addition, 1 deletion
aleksis/apps/chronos/util/chronos_helpers.py
aleksis/apps/chronos/util/predicates.py
+1
-1
1 addition, 1 deletion
aleksis/apps/chronos/util/predicates.py
with
2 additions
and
2 deletions
aleksis/apps/chronos/util/chronos_helpers.py
+
1
−
1
View file @
b642870e
...
...
@@ -152,7 +152,7 @@ def get_rooms(user: "User"):
wanted_rooms
=
set
()
for
room
in
rooms
:
if
checker
.
has_perm
(
"
c
hronos
.view_room_timetable
"
,
room
):
if
checker
.
has_perm
(
"
c
ore
.view_room_timetable
"
,
room
):
wanted_rooms
.
add
(
room
.
pk
)
rooms
=
rooms
.
filter
(
Q
(
pk__in
=
wanted_rooms
))
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/chronos/util/predicates.py
+
1
−
1
View file @
b642870e
...
...
@@ -68,7 +68,7 @@ def has_room_timetable_perm(user: User, obj: Room) -> bool:
to access the requested room timetable.
"""
return
has_global_perm
(
"
chronos.view_all_room_timetables
"
)(
user
)
or
has_object_perm
(
"
c
hronos
.view_room_timetable
"
"
c
ore
.view_room_timetable
"
)(
user
,
obj
)
...
...
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