Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
4ca9812b
Commit
4ca9812b
authored
Mar 03, 2016
by
Georgios Tsakalos
Browse files
fix bug in delete software action
parent
ee7e8526
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/schools/src/Action/Software/DeleteSoftware.php
View file @
4ca9812b
...
...
@@ -43,7 +43,7 @@ class DeleteSoftware
}
$software
=
$this
->
softwareService
->
getSoftwareById
(
$id
);
if
(
$
teacher
[
'school_id'
]
!=
$school
->
id
)
{
if
(
$
software
[
'school_id'
]
!=
$school
->
id
)
{
$res
=
$res
->
withStatus
(
403
,
'Schools not match'
);
return
$res
;
...
...
Write
Preview
Markdown
is supported
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