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

refactor: remove alanning:roles and related user roles code #193

Merged
merged 15 commits into from
Feb 2, 2020

Conversation

kieckhafer
Copy link
Member

@kieckhafer kieckhafer commented Jan 27, 2020

Impact: minor
Type: feature|refactor

Issue

roles (now referred to as permissions where we can) used to be attached to users, and alanning:roles helped manage keeping user roles in sync with group roles. We no longer use the user.roles object, and instead strictly query groups permissions and see if a user is part of a group to see if they are allowed to make an action.

Solution

Remove remaining code which references the alanning:roles package, and update accordingly to get data from Groups.

Breaking changes

Any custom code using Roles will need to be refactored.

Testing

  1. Most of the removal of checking for users.roles has already occurred in other PRs, so just making sure you can still use admin as expected, without running into any permissions issues, should be sufficient.
  2. One place that we removed new roles related functionality is in the Accounts Groups panel. See that you can rename groups as expected. The groups themselves, and the permissions inside the groups, need to be completely refactored to work with the new permissions (in another PR)

Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
@kieckhafer kieckhafer changed the title refactor: remove alanning:roles and related user roles code [BLOCKED] refactor: remove alanning:roles and related user roles code Jan 28, 2020
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
Signed-off-by: Erik Kieckhafer <ek@ato.la>
@kieckhafer kieckhafer marked this pull request as ready for review January 28, 2020 17:37
…removeAlanningRoles

# Conflicts:
#	.meteor/versions
#	imports/plugins/core/core/server/publications/collections/orders.js
@kieckhafer kieckhafer changed the title [BLOCKED] refactor: remove alanning:roles and related user roles code refactor: remove alanning:roles and related user roles code Jan 31, 2020
Signed-off-by: Erik Kieckhafer <ek@ato.la>
@aldeed aldeed merged commit 7fed4f5 into trunk Feb 2, 2020
@aldeed aldeed deleted the refactor-kieckhafer-removeAlanningRoles branch February 2, 2020 18:18
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

Successfully merging this pull request may close these issues.

2 participants