Skip to content

Commit b464ab3

Browse files
committed
Merge pull request #37 from ParsePlatform/gFosco.saveMethods
Matching save signature on ParseUser, ParseRole
2 parents eefe288 + 3728b73 commit b464ab3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Parse/ParseRole.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getRoles()
8787
return $this->getRelation("roles");
8888
}
8989

90-
public function save()
90+
public function save($useMasterKey = false)
9191
{
9292
if (!$this->getACL()) {
9393
throw new ParseException(
@@ -99,7 +99,7 @@ public function save()
9999
"Roles must have a name."
100100
);
101101
}
102-
return parent::save();
102+
return parent::save($useMasterKey);
103103
}
104104

105105

src/Parse/ParseUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ public function isCurrent()
272272
*
273273
* @throws ParseException
274274
*/
275-
public function save()
275+
public function save($useMasterKey = false)
276276
{
277277
if ($this->getObjectId()) {
278-
parent::save();
278+
parent::save($useMasterKey);
279279
} else {
280280
throw new ParseException(
281281
"You must call signUp to create a new User."

0 commit comments

Comments
 (0)