hoaproject / acl Goto Github PK
View Code? Open in Web Editor NEWThe Hoa\Acl library.
Home Page: https://hoa-project.net/
The Hoa\Acl library.
Home Page: https://hoa-project.net/
Related to hoaproject/Core#80.
Quoting https://github.com/php/php-src/blob/7dcfdbbee431c93c52605e1df323d18e0c6088e9/UPGRADING#L392-L398:
Furthermore the following class, interface and trait names are now reserved
for future use, but do not yet throw an error when used:
- resource
- object
- mixed
- numeric
Too bad. Hoa\Acl\Resource
might break PHP7.x (and 8.x). We have to fix that.
I'm having trouble specifying permissions. It seems like this is not implemented, unless I missed something.
I have this code:
$acl = new Acl();
$administrators = new Group('administrators');
$acl->addGroup($administrators);
$peter = new User(1, 'Peter');
$administrators->addUsers([$peter]);
$service_a = new Service('service_a');
$service_b = new Service('service_b');
$administrators->addServices([$service_a, $service_b]);
$read = new Permission('read');
$write = new Permission('write');
$acl->allow($administrators,[$read, $write]); // ??
How can I give the group view-permission on service-A, but deny view-permission on service-B?
Imagine I cannot delete the service from the group, because I need it for other permissions.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Hello @hoaproject/hoackers,
We received several feedbacks asking to finalize this library because of the lack of other libraries of the same nature. So I am working on this right now. This will not take a lot of time.
For example,
give a user access to all pages, but excludes access to page-x
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.