Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
madis
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Soluris
madis
Commits
9a664689
Commit
9a664689
authored
2 years ago
by
sebastien dupuy
Browse files
Options
Downloads
Patches
Plain Diff
correctifs sur la creation et modif d'une categorie dans l espace documentaire
parent
64197d6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#28877
failed
2 years ago
Stage: cache
Stage: tests
Stage: quality-assurance
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Domain/Documentation/Controller/CategoryController.php
+2
-2
2 additions, 2 deletions
src/Domain/Documentation/Controller/CategoryController.php
with
2 additions
and
2 deletions
src/Domain/Documentation/Controller/CategoryController.php
+
2
−
2
View file @
9a664689
...
...
@@ -117,7 +117,7 @@ class CategoryController extends CRUDController
*/
public
function
formPrePersistData
(
$object
)
{
$object
->
setSystem
(
false
);
$object
->
setSystem
e
(
false
);
}
/**
...
...
@@ -157,7 +157,7 @@ class CategoryController extends CRUDController
throw
new
NotFoundHttpException
(
"No object found with ID '
{
$id
}
'"
);
}
if
(
!
$this
->
authorizationChecker
->
isGranted
(
'ROLE_ADMIN'
)
||
$object
->
getSystem
())
{
if
(
!
$this
->
authorizationChecker
->
isGranted
(
'ROLE_ADMIN'
)
||
$object
->
getSystem
e
())
{
$this
->
addFlash
(
'success'
,
$this
->
getFlashbagMessage
(
'error'
,
'delete'
,
$object
));
return
$this
->
redirectToRoute
(
'documentation_document_list'
);
...
...
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