commit16
This commit is contained in:
@@ -11,6 +11,13 @@ use Illuminate\Support\Str;
|
||||
|
||||
class DocumentManagementAccess
|
||||
{
|
||||
/** Existing editorial publication authority; it does not grant financial decision powers. */
|
||||
public function catalogueEditor(?User $actor): bool
|
||||
{
|
||||
return $actor && $actor->hasVerifiedEmail() && ! app(PortalProfileAccess::class)->has($actor, 'auditor')
|
||||
&& ($this->full($actor) || $this->editorial($actor));
|
||||
}
|
||||
|
||||
public function full(User $actor): bool
|
||||
{
|
||||
return Gate::forUser($actor)->allows('manage-portal');
|
||||
|
||||
Reference in New Issue
Block a user