Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Parse/PFUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *__nullable error);
@discussion An authenticated `PFUser` is one that is obtained via a <signUp> or <logIn> method.
An authenticated object is required in order to save (with altered values) or delete it.
*/
@property (nonatomic, assign, readonly, getter=isAuthenticated) BOOL isAuthenticated;
@property (nonatomic, assign, readonly, getter=isAuthenticated) BOOL authenticated;

///--------------------------------------
/// @name Creating a New User
Expand Down
2 changes: 1 addition & 1 deletion Parse/PFUser.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ + (BFTask *)_getCurrentUserSessionTokenAsync {

- (BFTask PF_GENERIC(PFVoid) *)_validateDeleteAsync {
return [[super _validateDeleteAsync] continueWithSuccessBlock:^id(BFTask PF_GENERIC(PFVoid) *task) {
if (!self.isAuthenticated) {
if (!self.authenticated) {
NSError *error = [PFErrorUtilities errorWithCode:kPFErrorUserCannotBeAlteredWithoutSession
message:@"User cannot be deleted unless they have been authenticated."];
return [BFTask taskWithError:error];
Expand Down