Admin Workflow - Fix Tested Issues

This commit is contained in:
Dillon Ngo
2025-01-15 06:06:08 +08:00
parent e764a797ff
commit c8b20100bd
@@ -30,13 +30,10 @@ class CanUpdateBankMetadata extends AbstractRule
*/
protected function authorized($object): bool
{
//cief todo: 66 - temporary workaround
// if (!Auth::user()->can('update bank_metadata')) {
// return false;
// }
// return true;
if (in_array(Auth::user()->type, RoleTypes::ADMIN_ROLES)) {
return true;
}