https://github.com/silentsolutionsdigital/ash-rbac
Ash extension that allows for easier application of policies.
https://github.com/silentsolutionsdigital/ash-rbac
ash ash-rbac elixir rbac
Last synced: 29 days ago
JSON representation
Ash extension that allows for easier application of policies.
- Host: GitHub
- URL: https://github.com/silentsolutionsdigital/ash-rbac
- Owner: silentsolutionsdigital
- License: mit
- Created: 2023-07-11T08:21:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T07:40:23.000Z (over 1 year ago)
- Last Synced: 2025-10-21T14:51:06.751Z (3 months ago)
- Topics: ash, ash-rbac, elixir, rbac
- Language: Elixir
- Homepage: https://hexdocs.pm/ash_rbac/AshRbac.html
- Size: 127 KB
- Stars: 21
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AshRbac
A small extension that allows for easier application of policies
```elixir
rbac do
role :user do
fields [:fields, :user, :can, :see]
actions [:actions, :user, :can :use]
end
end
```
## Installation
The package can be installed by adding `ash_rbac` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ash_rbac, "~> 0.6.1"},
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at .