Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Fix default user permissions / view mode dropdown #966

Closed
@orenyk

Description

@orenyk

Discovered through my Heroku instance (#275), all new users on master are created as admins. We need to make sure this defaults to patron.


  • set missing role to normal in controller create methods (create and quick_create)
  • ensure that the view_mode is set to the role
  • ensure that users with roles other than admin and superuser cannot change the view mode
  • add migration to change default view_mode in schema.rb

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions