Open MachHach opened 6 years ago
Initial design
Users
, Groups
, Roles
, Permissions
UserGroups
, GroupRoles
, RolePermissions
TODO
Data-specific access control also need to be defined, per case basis.
For example, only related entities of a project group (students and the supervisor(s)) can read that project group's proposals, in addition to the FYP coordinator.
This can be simplified by leveraging on Laravel's authorization methods.
Policy
for model / resource authorization, doubles as a form of ACL to the models (can also cover the data-specific access control use case).Gate
for other cases which do not concern about models, e.g. an admin dashboard page.Note that we still need the authorization models proposed above to allow flexible, runtime adjustments to authorization rules specific to the business logic.
Currently there is no user roles / groups / role group / similar authorization groupings.
To implement.