diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 22:35:11 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-29 10:08:08 +0200 |
commit | 67e302885cab639c70d3dca5c022d6fa9648956c (patch) | |
tree | ceb0faf5a58febc729c0e73e14c04a2bd4d77a5c /lib/private/share/share.php | |
parent | 0dc649f3914c4917cbc679827fb4f080e4679b35 (diff) | |
download | nextcloud-server-67e302885cab639c70d3dca5c022d6fa9648956c.tar.gz nextcloud-server-67e302885cab639c70d3dca5c022d6fa9648956c.zip |
remove share permission if user is excluded from sharing
Diffstat (limited to 'lib/private/share/share.php')
-rw-r--r-- | lib/private/share/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index af286e7154e..0c42853302d 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -1397,7 +1397,7 @@ class Share extends \OC\Share\Constants { } } // Check if resharing is allowed, if not remove share permission - if (isset($row['permissions']) && !self::isResharingAllowed()) { + if (isset($row['permissions']) && (!self::isResharingAllowed() | \OC_Util::isSharingDisabledForUser())) { $row['permissions'] &= ~\OCP\PERMISSION_SHARE; } // Add display names to result |