summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-08-04 12:49:41 +0200
committerRobin Appelman <robin@icewind.nl>2016-11-16 15:24:28 +0100
commit7e9e5db4963b2ce8e34b6b70347d9cc2dff3f88a (patch)
tree2ff623f7ba2aa86609ee0f76585ff1250377e727 /lib
parentda63af8b021afb209308f16611508ea65399f738 (diff)
downloadnextcloud-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.php4
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));
}
}
}