using asdf to install erlang:
asdf install erlang 19.3
but I got:
| import { AbilityBuilder, Ability } from 'casl' | |
| // Alternatively this data can be retrieved from server | |
| export default function defineAbilitiesFor(user) { | |
| const { rules, can } = AbilityBuilder.extract() | |
| can('read', 'User') | |
| can('update', 'User', { id: user.id }) | |
| if (user.role === 'doctor') { |