Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
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
Container Registry
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
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
6b054c9c
Verified
Commit
6b054c9c
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
[Group roles] Check permissions in week view
parent
0b147eea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!131
Resolve "Add support for assinging group roles"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/views.py
+3
-1
3 additions, 1 deletion
aleksis/apps/alsijil/views.py
with
3 additions
and
1 deletion
aleksis/apps/alsijil/views.py
+
3
−
1
View file @
6b054c9c
...
...
@@ -271,7 +271,9 @@ def week_view(
# Group roles
show_group_roles
=
(
group
and
request
.
user
.
person
.
preferences
[
"
alsijil__group_roles_in_week_view
"
]
group
and
request
.
user
.
person
.
preferences
[
"
alsijil__group_roles_in_week_view
"
]
and
request
.
user
.
has_perm
(
"
alsijil.view_assigned_grouproles
"
,
group
)
)
if
show_group_roles
:
group_roles
=
GroupRole
.
objects
.
with_assignments
(
wanted_week
,
[
group
])
...
...
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