soundintheory / fuel-cmf

A CMF for rapid web application development, built upon FuelPHP and Doctrine ORM
8 stars 0 forks source link

Update Driver.php #47

Open ytripet opened 2 years ago

ytripet commented 2 years ago

//if ($resource_permissions !== 0) $role_passed = count($action); this line in each section seem to just break the thing so i commented out and if ($permission->action == 'all' && in_array($permission->resource, $resource) /*&& $permission->item_id === $resource_id*/) { seems that our permission checkboxes is not up to date with this code we only give permission for page type but when the permission is requested it has a resource_id but our permission does not so we need to bypass that line