-
Notifications
You must be signed in to change notification settings - Fork 5
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
#166790111: Role based access control functionality #44
#166790111: Role based access control functionality #44
Conversation
type: Sequelize.DATE }, | ||
updatedAt: { allowNull: false, | ||
type: Sequelize.DATE } }), | ||
down: (queryInterface, Sequelize) => queryInterface.dropTable('Permissions') }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Sequelize' is defined but never used no-unused-vars
665e8de
to
1b6fba0
Compare
.then(() => { | ||
queryInterface.sequelize.query('ALTER TABLE "Permissions" ADD CONSTRAINT "permissions-pks" PRIMARY KEY ("role", "actions")'); | ||
}), | ||
down: (queryInterface, Sequelize) => queryInterface.dropTable('Permissions') }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Sequelize' is defined but never used no-unused-vars
1b6fba0
to
4ff05fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra black lines
4ff05fb
to
9f6b4b1
Compare
- Added contoller for the admin to create a role. - Added middleware to check if user is admin. - Added test for role. - Added role in the token. - Changed role data type in the user model.
9f6b4b1
to
e6a9e4f
Compare
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
Any background context you want to provide?
What are the relevant pivotal tracker stories?
#166790111
Screenshots
Questions: