AuthWeb.RoleController (auth v1.6.6)
Link to this section Summary
Functions
grant_role/3 grants a role to the given person the conn must have conn.assigns.person to check for admin in order to grant the role. grantee_id should be a valid person.id (the person you want to grant the role to) and role_id a valid role.id
revoke/2 revokes a role
Link to this section Functions
Link to this function
create(conn, map)
Link to this function
delete(conn, map)
Link to this function
edit(conn, map)
Link to this function
grant(conn, params)
grant_role/3 grants a role to the given person the conn must have conn.assigns.person to check for admin in order to grant the role. grantee_id should be a valid person.id (the person you want to grant the role to) and role_id a valid role.id
Link to this function
index(conn, params)
Link to this function
new(conn, params)
Link to this function
revoke(conn, params)
revoke/2 revokes a role
Link to this function
show(conn, map)
Link to this function