Enhance user role checks and update card order tabs visibility

- Updated the isSystemUser method to include currency maintainers in role checks.
- Modified getTabs method in ListCardOrders to return an empty array for non-system users.
- Added a dehydrate state function for Turkmen phone numbers in UserForm schema.
This commit is contained in:
Mekan1206
2025-12-21 03:38:52 +05:00
parent 8e548126b2
commit 6a700fbd4b
4 changed files with 76 additions and 1 deletions

View File

@@ -57,6 +57,6 @@ trait RoleCheckers
*/
public function isSystemUser(): bool
{
return $this->isAdmin() || $this->isOperator();
return $this->isAdmin() || $this->isOperator() || $this->isCurrencyMaintainer();
}
}