-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Fix : User Roles not added to create, update or delete calls #374
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
Conversation
Thanks for attempting to fix this issue. There are 7 test failures to address before further review. |
@flessard updated the pull request. |
Down to 4... You can run tests locally with |
@flessard updated the pull request. |
@@ -49,7 +49,7 @@ describe('Parse Role testing', () => { | |||
}).then((x) => { | |||
x.set('foo', 'baz'); | |||
// This should fail: | |||
return x.save(); | |||
return x.save({},{sessionToken: ""}); |
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 change this because, by default the sessionToken is passed. The result of this never fail.
@@ -80,7 +80,7 @@ Auth.prototype.getUserRoles = function() { | |||
return Promise.resolve(this.userRoles); | |||
} | |||
if (this.rolePromise) { | |||
return rolePromise; | |||
return this.rolePromise; |
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.
👍
@flessard updated the pull request. |
@flessard updated the pull request. |
@gfosco What is missing on this PR to be merge? |
@flessard updated the pull request. |
@flessard updated the pull request. |
@flessard updated the pull request. |
Fix : User Roles not added to create, update or delete calls
👍 |
No description provided.