Tenant Switch implemented Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local> Reviewed-on: #32
22 lines
395 B
PHP
22 lines
395 B
PHP
<?php
|
|
|
|
namespace App\Support;
|
|
|
|
enum TenantRole: string
|
|
{
|
|
case Owner = 'owner';
|
|
case Manager = 'manager';
|
|
case Operator = 'operator';
|
|
case Readonly = 'readonly';
|
|
|
|
public function canSync(): bool
|
|
{
|
|
return match ($this) {
|
|
self::Owner,
|
|
self::Manager,
|
|
self::Operator => true,
|
|
self::Readonly => false,
|
|
};
|
|
}
|
|
}
|