Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ZeMKI
Mesort
Commits
bd160264
Commit
bd160264
authored
Apr 06, 2020
by
ZeMKI
Browse files
Update InterviewPolicy.php
parent
e500d06a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Policies/InterviewPolicy.php
View file @
bd160264
...
...
@@ -50,7 +50,7 @@ class InterviewPolicy
*/
public
function
create
(
User
$user
,
$study
)
{
if
(
!
$user
->
can
(
'create-interviews'
,
Study
::
where
(
'id'
,
'='
,
$study
)
->
first
()
->
name
))
{
if
(
!
$user
->
can
(
'create-interviews'
,
Study
::
where
(
'id'
,
'='
,
$study
)
->
first
()
->
id
))
{
abort
(
403
,
'You are not allowed to create interviews for this study'
);
}
...
...
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