Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
17db675c
Commit
17db675c
authored
3 years ago
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Mauvais test d'utilité: les privilèges n'étaient pas migrés
parent
45f0c5d2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
admin/migration/v18Privileges.php
+1
-16
1 addition, 16 deletions
admin/migration/v18Privileges.php
with
1 addition
and
16 deletions
admin/migration/v18Privileges.php
+
1
−
16
View file @
17db675c
...
...
@@ -16,22 +16,7 @@ class v18Privileges extends AbstractMigration
public
function
utile
():
bool
{
if
(
!
$this
->
manager
->
hasTable
(
'SAVE_V18_PRIVILEGE'
))
{
return
false
;
}
$sql
=
"
SELECT
count(*) c
FROM
privilege p
JOIN categorie_privilege cp ON cp.id = p.categorie_id
WHERE
cp.code = 'enseignement'
AND p.code = 'visualisation'
"
;
return
$this
->
manager
->
getBdd
()
->
select
(
$sql
)[
0
][
'C'
]
==
'1'
;
return
$this
->
manager
->
hasTable
(
'SAVE_V18_PRIVILEGE'
);
}
...
...
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