diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-08-04 12:49:41 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:24:28 +0100 |
commit | 7e9e5db4963b2ce8e34b6b70347d9cc2dff3f88a (patch) | |
tree | 2ff623f7ba2aa86609ee0f76585ff1250377e727 /lib | |
parent | da63af8b021afb209308f16611508ea65399f738 (diff) | |
download | nextcloud-server-7e9e5db4963b2ce8e34b6b70347d9cc2dff3f88a.tar.gz nextcloud-server-7e9e5db4963b2ce8e34b6b70347d9cc2dff3f88a.zip |
fix setscope
Signed-off-by: Robin Appelman <icewind@owncloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/DefaultToken.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index b32f9cc9866..ea2414e6e15 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/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)); } } } |