Skip to content

Conversation

@alexjustesen
Copy link
Owner

@alexjustesen alexjustesen commented Sep 11, 2023

Description

This PR introduces roles for users, restricts authorization based on policies and lays the ground work for some future improvements.

Closes #511

Notes

  • When this feature is released the first user will be given the admin role.

Roles

See the Authorization docs for a detailed explanation of what each role and and cannot do.

  • admin
  • guest
  • user

Changelog

Added

  • cli command to update a user's role
  • role to the User model
  • scope page and resource authorization to the new roles

Changed

  • reorganized the form and table for UserResource

Screenshots

image
Updated user resource

@alexjustesen alexjustesen added the feature New feature or request label Sep 11, 2023
@alexjustesen alexjustesen self-assigned this Sep 11, 2023
@alexjustesen alexjustesen added this to the v0.12.0 milestone Sep 12, 2023
@alexjustesen alexjustesen marked this pull request as ready for review September 13, 2023 01:47
@alexjustesen alexjustesen merged commit 2e14e7a into main Sep 13, 2023
@alexjustesen alexjustesen deleted the user-role branch September 13, 2023 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User roles

2 participants