mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Don't remind editors about stalled or abandoned projects
This commit is contained in:
parent
de99d1869f
commit
1f41eb1e55
2 changed files with 24 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
/**
|
||||
* @property-read bool $HasBenefits Are any of the benefits in this object **`TRUE`**?
|
||||
* @property-read bool $RequiresPassword Do any of the benefits in this object require the `User` to have a password set?
|
||||
* @property-read bool $IsEditor Can this `User` manage or review projects?
|
||||
*/
|
||||
class Benefits{
|
||||
use Traits\Accessor;
|
||||
|
@ -55,6 +56,18 @@ class Benefits{
|
|||
return false;
|
||||
}
|
||||
|
||||
protected function GetIsEditor(): bool{
|
||||
if(
|
||||
$this->CanManageProjects
|
||||
||
|
||||
$this->CanReviewProjects
|
||||
){
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function GetHasBenefits(): bool{
|
||||
if(!isset($this->_HasBenefits)){
|
||||
$this->_HasBenefits = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue