major ui updates
This commit is contained in:
@@ -21,13 +21,11 @@ trait HasHelpdeskTickets
|
||||
return $this->hasMany(Ticket::class, 'agent_id');
|
||||
}
|
||||
|
||||
/** @return bool */
|
||||
public function isHelpdeskAgent(): bool
|
||||
{
|
||||
return (bool) (($this->helpdesk_agent ?? false) || ($this->helpdesk_admin ?? false));
|
||||
}
|
||||
|
||||
/** @return bool */
|
||||
public function isHelpdeskAdmin(): bool
|
||||
{
|
||||
return (bool) ($this->helpdesk_admin ?? false);
|
||||
|
||||
Reference in New Issue
Block a user