Skip to content

Commit 58954ab

Browse files
committed
Merge pull request #579 from ParsePlatform/nlutsenko.user.properties
Improve isAuthenticated property name on PFUser.
2 parents 57d3c76 + d9db0db commit 58954ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parse/PFUser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *__nullable error);
6565
@discussion An authenticated `PFUser` is one that is obtained via a <signUp> or <logIn> method.
6666
An authenticated object is required in order to save (with altered values) or delete it.
6767
*/
68-
@property (nonatomic, assign, readonly, getter=isAuthenticated) BOOL isAuthenticated;
68+
@property (nonatomic, assign, readonly, getter=isAuthenticated) BOOL authenticated;
6969

7070
///--------------------------------------
7171
/// @name Creating a New User

Parse/PFUser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ + (BFTask *)_getCurrentUserSessionTokenAsync {
9696

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

0 commit comments

Comments
 (0)