-
Notifications
You must be signed in to change notification settings - Fork 9
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
#167190462 Implement role based access control functionality #31
Conversation
7be2e80
to
0b818f5
Compare
0b818f5
to
d890027
Compare
d890027
to
ec07931
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.
LGTM
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.
LGTM
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.
Nice work on your implementation. I just want to ask, can an individual have more than one role?
edd5a36
to
bfc9244
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.
LGTM
bfc9244
to
e4b1a9d
Compare
bb8d668
to
7ec883a
Compare
errors.forEach((err) => { | ||
if (err.type === 'string.regex.base') { | ||
err.message = 'password must contain at least 1 uppercase, 1 lowercase, 1 number and 1 special character'; | ||
} | ||
}); | ||
/* istanbul ignore next */ |
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.
👍🏽
package.json
Outdated
@@ -5,7 +5,7 @@ | |||
"main": "index.js", | |||
"scripts": { | |||
"start": "node build/index.js", | |||
"dev": "export DEBUG=dev && nodemon --exec babel-node server/index.js", | |||
"dev": "export DEBUG=dev && NODE_ENV=production && nodemon --exec babel-node server/index.js", |
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.
I think the former dev script is the once the team uses. The NODE_ENV=production
should not to be there.
user can make comments to articles [(Finishes) #167190444]
Give appropratie text to the verification email subject Add the appropraite styling to the recieved emails Fix the swagger endpoint for verify email link [Fixes #167721942]
users can search by keyword uset can search by keyword and/or categories,tags,authornames [Delivers #167190452]
Create role base access control all over the platform [(Delivers) #167190462]
Create role base access control all over the platform [(Delivers) #167190462]
7ec883a
to
00d98c1
Compare
00d98c1
to
9512ee0
Compare
What does this PR do?
Description of Task to be completed?
Duty of each role, according to the project owner
user
moderator
admin
god
How should this be manually tested?
npm install
andnpm run dev
-use the /admin endpoint or use Swagger
Any background context you want to provide?
All implementation was done as a result of direct project owner specification.
What are the relevant pivotal tracker stories?
#167190462
Screenshots (if appropriate)
Questions:
N/A