mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 17:03:59 +00:00
Admin Workflow - Fix Tested Issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user