mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Fix permissions logic when patching projects
This commit is contained in:
parent
0b461d7ede
commit
4f4e72564a
1 changed files with 3 additions and 5 deletions
|
@ -93,11 +93,9 @@ try{
|
|||
if(
|
||||
!Session::$User->Benefits->CanEditProjects
|
||||
&&
|
||||
(
|
||||
$project->ManagerUserId != Session::$User->UserId
|
||||
||
|
||||
&&
|
||||
$project->ReviewerUserId != Session::$User->UserId
|
||||
)
|
||||
){
|
||||
throw new Exceptions\InvalidPermissionsException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue