I am using BjyAuthorize to control access in my project.
Everything working as expected with hard coded settings in module.bjyauthorize.global.php file. But my requirement is to set users dynamically and assign their user levels dynamically.
So I want to connect this file to DB tables some how and dynamically load settings. Please someone help me to get my thing done
Thank you
You have to create your own Providers or Guards that will load the settings from the database.
See BjyAuthorize\Provider\Role\ZendDb or BjyAuthorize\Provider\Role\ObjectRepositoryProvider.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With