Browse Source

fix setscope

Signed-off-by: Robin Appelman <icewind@owncloud.com>
pull/719/head
Robin Appelman 9 years ago
committed by Robin Appelman
parent
commit
7e9e5db496
No known key found for this signature in database GPG Key ID: 425003AC385454C5
  1. 4
      lib/private/Authentication/Token/DefaultToken.php

4
lib/private/Authentication/Token/DefaultToken.php

@ -163,9 +163,9 @@ class DefaultToken extends Entity implements IToken {
public function setScope($scope) {
if (is_string($scope)) {
$this->scope = $scope;
parent::setScope($scope);
} else {
return parent::setScope(json_encode($scope));
parent::setScope(json_encode($scope));
}
}
}
Loading…
Cancel
Save