Releases: jungsoft/rajska
Releases · jungsoft/rajska
v1.3.2
v1.3.1
v1.3.0
v1.2.0
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.0
Breaking Changes
Previous Authorization.has_user_access?/4
module callback:
@callback has_user_access?(
current_user,
scope :: module(),
{field :: any(), field_value :: any()},
rule :: any()
) :: boolean()
New Authorization.has_user_access?/3
callback:
@callback has_user_access?(current_user, scoped_struct, rule) :: boolean()
- Merge
scope
module and{field, field_value}
arguments into a struct, since scope module must define astruct
- Pass entire objects from field and query scope authorization to new
has_user_access?/3
- Rename
scope_by
,scope_object_by
andscope_field_by
metas toscope?
,scope_object?
andscope_field?
- Set default
scope?
value to true
v0.8.0
Breaking Changes
context_field_authorized?
andfield_authorized?
removed, field authorization now useshas_context_access?
with rules
Enhancements
- Add custom credo rules
Field authorization middleware:
- Add meta
:rule
- Use source struct and scope_by for scoping
- Unify all scope functions in Rajska (no more context_field_authorized)
- Implement
scope_field_by
option
Object authorization middleware:
- Implement
scope_object_by
option