Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Resint
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
AlekSIS®
Official
AlekSIS-App-Resint
Commits
137c6c98
Commit
137c6c98
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix rules
parent
1c91e692
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#24927
canceled
3 years ago
Stage: test
Stage: build
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/resint/models.py
+1
-1
1 addition, 1 deletion
aleksis/apps/resint/models.py
aleksis/apps/resint/rules.py
+1
-1
1 addition, 1 deletion
aleksis/apps/resint/rules.py
with
2 additions
and
2 deletions
aleksis/apps/resint/models.py
+
1
−
1
View file @
137c6c98
...
@@ -44,7 +44,7 @@ class PosterGroup(ExtensibleModel):
...
@@ -44,7 +44,7 @@ class PosterGroup(ExtensibleModel):
permissions
=
[
permissions
=
[
(
"
view_poster_of_group
"
,
_
(
"
Can view all posters of this group
"
)),
(
"
view_poster_of_group
"
,
_
(
"
Can view all posters of this group
"
)),
(
"
upload_poster_to_group
"
,
_
(
"
Can upload new posters to this group
"
)),
(
"
upload_poster_to_group
"
,
_
(
"
Can upload new posters to this group
"
)),
(
"
change_poster_
t
o_group
"
,
_
(
"
Can change all posters of this group
"
)),
(
"
change_poster_o
f
_group
"
,
_
(
"
Can change all posters of this group
"
)),
(
"
delete_poster_of_group
"
,
_
(
"
Can delete all posters of this group
"
)),
(
"
delete_poster_of_group
"
,
_
(
"
Can delete all posters of this group
"
)),
]
]
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/resint/rules.py
+
1
−
1
View file @
137c6c98
...
@@ -74,7 +74,7 @@ add_perm("resint.view_posters_rule", view_posters_predicate)
...
@@ -74,7 +74,7 @@ add_perm("resint.view_posters_rule", view_posters_predicate)
# Upload poster
# Upload poster
upload_poster_predicate
=
view_posters_predicate
&
(
upload_poster_predicate
=
view_posters_predicate
&
(
has_global_perm
(
"
resint.add_poster
"
)
|
has_any_object
(
"
resint.a
d
d_poster_to_group
"
,
PosterGroup
)
has_global_perm
(
"
resint.add_poster
"
)
|
has_any_object
(
"
resint.
uplo
ad_poster_to_group
"
,
PosterGroup
)
)
)
add_perm
(
"
resint.upload_poster_rule
"
,
upload_poster_predicate
)
add_perm
(
"
resint.upload_poster_rule
"
,
upload_poster_predicate
)
...
...
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