From 24e3843bd950003e492f0d9153bf7fc43af7f897 Mon Sep 17 00:00:00 2001 From: Phill Wiggins Date: Mon, 23 Sep 2019 15:38:47 +0100 Subject: [PATCH 1/2] Update LICENSE --- LICENSE | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index ba75c69f7..996e2d11f 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,11 @@ -TODO: Add your license here. +Copyright 2019 Parse, LLC + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. From a711a741320a3b6d926558413b7ca8735e01ceab Mon Sep 17 00:00:00 2001 From: Artem Demyanov Date: Mon, 23 Sep 2019 21:41:05 +0300 Subject: [PATCH 2/2] Fixed permission for ACL's getWriteAccess Fixes #275 --- lib/src/objects/parse_acl.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/objects/parse_acl.dart b/lib/src/objects/parse_acl.dart index 7919343ab..ceb061970 100644 --- a/lib/src/objects/parse_acl.dart +++ b/lib/src/objects/parse_acl.dart @@ -93,7 +93,7 @@ class ParseACL { throw 'cannot getWriteAccess for null userId'; } final _ACLPermissions _permissions = _permissionsById[userId]; - return _permissions != null && _permissions.getReadPermission(); + return _permissions != null && _permissions.getWritePermission(); } Map toJson() {