Browse Source
fix setscope
Signed-off-by: Robin Appelman <icewind@owncloud.com>
pull/719/head
Robin Appelman
9 years ago
committed by
Robin Appelman
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with
2 additions and
2 deletions
-
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)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |