mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Fix permissions problem
This commit is contained in:
parent
3287dd3b30
commit
652cbba535
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ try{
|
||||||
if(
|
if(
|
||||||
($GLOBALS['User'] === null && $artwork->Status != ArtworkStatus::Approved)
|
($GLOBALS['User'] === null && $artwork->Status != ArtworkStatus::Approved)
|
||||||
||
|
||
|
||||||
($GLOBALS['User'] !== null && $artwork->SubmitterUserId != $GLOBALS['User']->UserId && !$isReviewerView)
|
($GLOBALS['User'] !== null && $artwork->Status != ArtworkStatus::Approved && $artwork->SubmitterUserId != $GLOBALS['User']->UserId && !$isReviewerView)
|
||||||
){
|
){
|
||||||
throw new Exceptions\InvalidPermissionsException();
|
throw new Exceptions\InvalidPermissionsException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue