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

Adds Role-based functionality #47

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

Sammuel09
Copy link
Contributor

What does this PR do?

  • Adds Role-based functionality to the App. That is, a super admin can assign users to be an admin.

Description of Task to be completed?

  • Create Role-based functionality.
  • Set up tests.

How should this be manually tested?

  • Use git fetch to clone this branch.
  • Switch to this branch in your machine.
  • Run npm run dev to start the server.
  • Using postman, send a put request to http://localhost:3000/api/v1/users/<usernameofverifieduser>
  • If you do not have a verified user in your DB, create one by signing up.
  • This request should be sent with a superAdminToken as a bearer.
  • You get a response in format:
{ "status": "success",
    "data": {
        "statusCode": 200,
        "message": "The User role has been upgraded to Admin",
        "error": null,
        "payload": {
            
        }
    }
}
  • You can test this feature by running npm t

What are the relevant pivotal tracker stories?

Link to Pivotal Tracker Story

@jesseinit jesseinit temporarily deployed to neon-ah-staging-pr-47 January 29, 2019 04:03 Inactive
@Sammuel09 Sammuel09 force-pushed the ft-role-based-functionality-#162414289 branch from 3e9e190 to 61a6fff Compare January 29, 2019 04:20
@jesseinit jesseinit temporarily deployed to neon-ah-staging-pr-47 January 29, 2019 04:20 Inactive
@tejiri4
Copy link
Contributor

tejiri4 commented Jan 29, 2019

LGTM, yet.

@rafmme
Copy link
Contributor

rafmme commented Jan 29, 2019

LGTM, yet

@ebzeal
Copy link
Contributor

ebzeal commented Jan 29, 2019

LGTM yet

@Sammuel09 Sammuel09 force-pushed the ft-role-based-functionality-#162414289 branch from 61a6fff to 4686440 Compare January 29, 2019 13:00
@jesseinit jesseinit temporarily deployed to neon-ah-staging-pr-47 January 29, 2019 13:00 Inactive
@Sammuel09 Sammuel09 force-pushed the ft-role-based-functionality-#162414289 branch from 4686440 to bd96837 Compare January 29, 2019 13:40
@jesseinit jesseinit temporarily deployed to neon-ah-staging-pr-47 January 29, 2019 13:41 Inactive
@Sammuel09 Sammuel09 force-pushed the ft-role-based-functionality-#162414289 branch from bd96837 to 1ebc81d Compare January 29, 2019 13:41
@seunkoko seunkoko merged commit 3094143 into dev Jan 29, 2019
@seunkoko seunkoko deleted the ft-role-based-functionality-#162414289 branch January 29, 2019 15:48
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.

None yet

7 participants