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

Standard Identity in the config file is unnecessary #90

Closed ghost closed 10 years ago

ghost commented 11 years ago

Good morning.

The Standard Identity definition is unnecessary, and a better way for using ZfcRbac with ZfcUser is to define the 'auth_zfcuser_service' as default identity provider, since it's inherit from IdentityInterface and if it's null, the Rbac setIdentity function will switch to a standardidentity with the default anonymous role.

Some users add a closure between the two case in the config file and its a very bad way since its create a bug when the config_cache is enabled.

Did you choose this way for another reason that i missed it?

bakura10 commented 11 years ago

There are some things that are indeed useless. ZfcRbac is under refactored, I hope we can make it more flexible ;-).