Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
ceb4d83a
Commit
ceb4d83a
authored
Jun 07, 2021
by
Antony Le Courtes
Browse files
Correction pour eviter de mettre le role sur l'administrateur (existe déjà)
parent
6080f5f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/migration/MigrationPrivilegesServiceEditionMasse.php
View file @
ceb4d83a
...
...
@@ -90,7 +90,8 @@ class MigrationPrivilegesServiceEditionMasse extends AbstractMigration
JOIN role_privilege rp ON rp.role_id = r.id AND rp.privilege_id = (
SELECT p.id FROM privilege p
JOIN categorie_privilege cp ON cp.id = p.categorie_id AND cp.code = 'enseignement'
WHERE p.code = 'edition')
WHERE p.code = 'edition')
JOIN role r ON rp.role_id = r.id AND r.code != 'administrateur'
"
;
$bdd
->
exec
(
$sql
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment