예제 #1
0
 /// <summary>
 /// Gets whether the given user is *explicitly* allowed to write this object.
 /// Even if this returns false, the user may still be able to write it if
 /// PublicReadAccess is true or a role that the user belongs to has write access.
 /// </summary>
 /// <param name="user">The user to check.</param>
 /// <returns>Whether the user has access.</returns>
 public bool GetWriteAccess(ParseUser user)
 {
     return(GetWriteAccess(user.ObjectId));
 }
예제 #2
0
 /// <summary>
 /// Creates an ACL where only the provided user has access.
 /// </summary>
 /// <param name="owner">The only user that can read or write objects governed by this ACL.</param>
 public ParseACL(ParseUser owner)
 {
     SetReadAccess(owner, true);
     SetWriteAccess(owner, true);
 }
예제 #3
0
 /// <summary>
 /// Sets whether the given user is allowed to write this object.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <param name="allowed">Whether the user has permission.</param>
 public void SetWriteAccess(ParseUser user, bool allowed)
 {
     SetWriteAccess(user.ObjectId, allowed);
 }