ZF-Commons / zfc-rbac

Role-based access control module to provide additional features on top of Zend\Permissions\Rbac
BSD 3-Clause "New" or "Revised" License
181 stars 111 forks source link

Roles are never loaded in lazy-load provider #26

Closed thestanislav closed 11 years ago

thestanislav commented 11 years ago

EVENT_HAS_ROLE never triggered when calling isGranted method in ZfcRbac/Service/Rbac.php Check code at line 177 https://github.com/ZF-Commons/ZfcRbac/blob/master/src/ZfcRbac/Service/Rbac.php#L177. May be the line

if (!$rbac->hasRole($role)) 

should be replaced with

if (!$this->hasRole($role)) 
spiffyjr commented 11 years ago

That's correct. Thanks.