feat: Enforce active user status for panel access and update name attribute accessor syntax.
This commit is contained in:
parent
dd8a313a24
commit
b8963032fd
@ -49,7 +49,7 @@ protected function inactive(Builder $query): void
|
|||||||
|
|
||||||
public function canAccessPanel(Panel $panel): bool
|
public function canAccessPanel(Panel $panel): bool
|
||||||
{
|
{
|
||||||
return true;
|
return $this->is_active === IsActive::Active;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function name(): Attribute
|
protected function name(): Attribute
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user