dictator icon indicating copy to clipboard operation
dictator copied to clipboard

Dictates what your users see. Plug-based authorization.

Results 7 dictator issues
Sort by recently updated
recently updated
newest added

** What's new ** [Issue-24](https://github.com/subvisual/dictator/issues/24) - Implemented a "not found" handler, with the possibility of the user configuring a custom not found handler. Closes #24 . Previously, a policy only...

We're currently not supporting any type of authorisation for LiveView. Should we add a plug that makes use of `conn.private[:phoenix_live_view]` and calls certain policies? What about inferring the action and...

enhancement
discussion

The test suite is [showing a warning](https://github.com/subvisual/dictator/pull/27/checks?check_run_id=1400353522#step:5:159) that are then shown in the pull requests:

Sometimes we want to conditionally render elements based on the user having permissions or not. We should implement this somehow. A basic idea: ```elixir = if has_permissions?(@conn, :show, @post) ```...

enhancement
discussion

If a resource is not found, we're currently calling the policy with `nil` for the resource value. This means that a lot of times, the policies will have a function...

enhancement
good first issue

Currently we depend on a `conn` being present and this isn't the case when handling GraphQL. In these scenarios how should we act? Should we allow the policy to be...

enhancement
discussion