corneltek / kendo
The powerful general access control framework
Installs: 1 829
Dependents: 13
Suggesters: 0
Security: 0
Stars: 9
Watchers: 6
Forks: 1
Open Issues: 6
Requires (Dev)
- corneltek/lazyrecord: dev-master
- corneltek/phpunit-testmore: dev-master
- corneltek/universal: dev-master
- twig/twig: ~1.12
This package is auto-updated.
Last update: 2024-10-29 04:36:27 UTC
README
Install
{ "require": { "corneltek/kendo": "*" } }
Development Environment Setup
composer install --dev
lazy build-conf db/config/database.yml
lazy schema build src
lazy sql --rebuild --basedata src
phpunit
Debugging
Query Permissions
SELECT ar.resource, ac.role, ar.operation, ac.allow FROM access_controls ac LEFT JOIN access_rules ar ON (ac.rule_id = ar.id);
SELECT ar.id as rule_id, ar.rules_class as rule_class, ac.role, if(ac.allow,'can', 'can not') as modal_verb, ar.operation, ar.resource FROM access_controls ac LEFT JOIN access_rules ar ON (ac.rule_id = ar.id);