Add CanEditEbooks benefit and clean up some PHPStan errors

This commit is contained in:
Alex Cabal 2024-12-14 11:50:16 -06:00
parent 23b5c8ef31
commit 1a742baa51
10 changed files with 75 additions and 14 deletions

View file

@ -16,6 +16,7 @@ class Benefits{
public bool $CanReviewOwnArtwork = false;
public bool $CanEditUsers = false;
public bool $CanEditCollections = false;
public bool $CanEditEbooks = false;
public bool $CanCreateEbookPlaceholders = false;
protected bool $_HasBenefits;
@ -30,6 +31,10 @@ class Benefits{
||
$this->CanEditUsers
||
$this->CanEditCollections
||
$this->CanEditEbooks
||
$this->CanCreateEbookPlaceholders
){
return true;