Skip to content

Commit 62c7efb

Browse files
committed
Merge pull request #524 from ParsePlatform/nlutsenko.acl.properties
Convert getters/setters of public read/write access on PFACL to properties.
2 parents c510522 + c18336f commit 62c7efb

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

Parse/PFACL.h

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,32 +45,14 @@ NS_ASSUME_NONNULL_BEGIN
4545
///--------------------------------------
4646

4747
/*!
48-
@abstract Set whether the public is allowed to read this object.
49-
50-
@param allowed Whether the public can read this object.
51-
*/
52-
- (void)setPublicReadAccess:(BOOL)allowed;
53-
54-
/*!
55-
@abstract Gets whether the public is allowed to read this object.
56-
57-
@returns `YES` if the public read access is enabled, otherwise `NO`.
48+
@abstract Controls whether the public is allowed to read this object.
5849
*/
59-
- (BOOL)getPublicReadAccess;
50+
@property (nonatomic, assign, getter=getPublicReadAccess) BOOL publicReadAccess;
6051

6152
/*!
62-
@abstract Set whether the public is allowed to write this object.
63-
64-
@param allowed Whether the public can write this object.
65-
*/
66-
- (void)setPublicWriteAccess:(BOOL)allowed;
67-
68-
/*!
69-
@abstract Gets whether the public is allowed to write this object.
70-
71-
@returns `YES` if the public write access is enabled, otherwise `NO`.
53+
@abstract Controls whether the public is allowed to write this object.
7254
*/
73-
- (BOOL)getPublicWriteAccess;
55+
@property (nonatomic, assign, getter=getPublicWriteAccess) BOOL publicWriteAccess;
7456

7557
///--------------------------------------
7658
/// @name Controlling Access Per-User

ParseStarterProject/OSX/ParseOSXStarterProject-Swift/ParseOSXStarterProject/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
3030

3131
let defaultACL: PFACL = PFACL()
3232
// If you would like all objects to be private by default, remove this line.
33-
defaultACL.setPublicReadAccess(true)
33+
defaultACL.publicReadAccess = true
3434

3535
PFACL.setDefaultACL(defaultACL, withAccessForCurrentUser: true)
3636

ParseStarterProject/iOS/ParseStarterProject-Swift/ParseStarterProject/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4949
let defaultACL = PFACL();
5050

5151
// If you would like all objects to be private by default, remove this line.
52-
defaultACL.setPublicReadAccess(true)
52+
defaultACL.publicReadAccess = true
5353

5454
PFACL.setDefaultACL(defaultACL, withAccessForCurrentUser:true)
5555

0 commit comments

Comments
 (0)