Skip to content

Commit 17de466

Browse files
author
Maksym Mykhailenko
committed
chore: hack to test as admin user
1 parent 671c585 commit 17de466

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/actions/loadUser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export function loadUserSuccess(dispatch, token) {
5454
currentUser.id = currentUser.userId
5555
currentUser.token = token
5656
}
57+
// uncomment to add admin role to the user for testing admin functionality locally
58+
// currentUser.roles.push('administrator')
5759
if (currentUser) {
5860
getUserProfile(currentUser.handle).then((profile) => {
5961
currentUser = _.assign(currentUser, profile)

0 commit comments

Comments
 (0)