-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add revokeSessionOnPasswordReset option. Closes #1584 #1597
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
var Parse = require('parse/node').Parse; | ||
import cache from './cache'; | ||
import Auth from './Auth'; | ||
import Auth from './Auth'; | ||
|
||
var RestQuery = require('./RestQuery'); | ||
var RestWrite = require('./RestWrite'); | ||
|
@@ -96,7 +96,6 @@ function create(config, auth, className, restObject) { | |
// Usually, this is just updatedAt. | ||
function update(config, auth, className, objectId, restObject) { | ||
enforceRoleSecurity('update', className, auth); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why that removal? Checked after? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accident. Good catch. Somewhat worrying that it didn't cause any tests to fail though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uhm.. You're right :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But, the enforceRoleSecurity is a no-op when className != _Installation and action is 'update' |
||
|
||
return Promise.resolve().then(() => { | ||
if (triggers.getTrigger(className, triggers.Types.beforeSave, config.applicationId) || | ||
triggers.getTrigger(className, triggers.Types.afterSave, config.applicationId) || | ||
|
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 touch you thought about it :)