Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow widgets creators to be restricted. #1198

Closed
FrenjaminBanklin opened this issue Feb 11, 2019 · 2 comments
Closed

Allow widgets creators to be restricted. #1198

FrenjaminBanklin opened this issue Feb 11, 2019 · 2 comments
Assignees
Milestone

Comments

@FrenjaminBanklin
Copy link
Contributor

There is potential to create widgets that we would only want to be created by users with the basic_author role.

This would most likely be something defined in the install.yaml for a widget and adjustable later on through the admin panel. Widgets restricted thus shouldn't appear in the catalog for users who lack the appropriate role.

@FrenjaminBanklin
Copy link
Contributor Author

Also worth considering whether it should be possible for a person with the basic_author role to create one of these widgets and then share it with somebody who lacks the basic_author role - first assumption is that users without the role shouldn't be viable to share access to the widget with, but it's possible that at some point somebody might want to do that.

@FrenjaminBanklin FrenjaminBanklin self-assigned this Feb 11, 2019
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 12, 2019
… for student creation or not. Adjusted installer to account for a new install.yaml property corresponding to the new field. Adjusted widget catalog lookup to omit author_only widgets when non-author users are looking at the catalog. Fixed My Widgets page not properly disabling copy/delete buttons for users who lack appropriate access to a widget instance.
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 12, 2019
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 19, 2019
…ing who can publish widgets; rewrote migration, added checks etc. Added migration to keep track of the user who published a widget.
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 19, 2019
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 20, 2019
…d of if a widget instance is publishable by a user. Changed tests to match.
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 20, 2019
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 20, 2019
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Feb 22, 2019
FrenjaminBanklin added a commit to FrenjaminBanklin/Materia that referenced this issue Mar 12, 2019
@iturgeon iturgeon added this to the Ifrit (~5) milestone Jun 3, 2019
@iturgeon
Copy link
Member

iturgeon commented Jun 3, 2019

Merged into Ifrit. Should ship soon, closing.

@iturgeon iturgeon closed this as completed Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants