Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
323261ed
Commit
323261ed
authored
2 years ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://scodoc.org/git/viennet/ScoDoc
into table
parents
381aaf6a
786bad7f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/scodoc/sco_permissions_check.py
+1
-1
1 addition, 1 deletion
app/scodoc/sco_permissions_check.py
with
1 addition
and
1 deletion
app/scodoc/sco_permissions_check.py
+
1
−
1
View file @
323261ed
...
...
@@ -166,7 +166,7 @@ def check_access_diretud(formsemestre_id, required_permission=Permission.ScoImpl
def
can_change_groups
(
formsemestre_id
:
int
)
->
bool
:
"
Vrai si l
'
utilisateur peut changer les groupes dans ce semestre
"
formsemestre
:
FormSemestre
=
FormSemestre
.
query
.
get_or_404
()
formsemestre
:
FormSemestre
=
FormSemestre
.
query
.
get_or_404
(
formsemestre_id
)
if
not
formsemestre
.
etat
:
return
False
# semestre verrouillé
if
current_user
.
has_permission
(
Permission
.
ScoEtudChangeGroups
):
...
...
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