diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-12 22:05:17 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-19 14:20:09 +0100 |
commit | 3bb793b6a711c6dcba266982b8aea4c6d3fe4bc5 (patch) | |
tree | 4724f5dcf407a4a7c3f0205f0220ead9b7af2e31 /lib/private/files/storage/wrapper/permissionsmask.php | |
parent | 5fd36d017ecdbce61dcf1c67ae04c8c0be81a4bf (diff) | |
download | nextcloud-server-3bb793b6a711c6dcba266982b8aea4c6d3fe4bc5.tar.gz nextcloud-server-3bb793b6a711c6dcba266982b8aea4c6d3fe4bc5.zip |
Implement password authentication mechanisms
Introduces the basic password authentication mechanism, along with a
mechanism based on ownCloud credentials stored in the user session.
Change to lib/private is an extension of PermissionsMask, as
isSharable() override was missing.
Session credentials auth mechanism now disables sharing on applied
storages, as credentials will not be available.
Diffstat (limited to 'lib/private/files/storage/wrapper/permissionsmask.php')
-rw-r--r-- | lib/private/files/storage/wrapper/permissionsmask.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/storage/wrapper/permissionsmask.php b/lib/private/files/storage/wrapper/permissionsmask.php index 993936321d0..50c3f2a6268 100644 --- a/lib/private/files/storage/wrapper/permissionsmask.php +++ b/lib/private/files/storage/wrapper/permissionsmask.php @@ -65,6 +65,10 @@ class PermissionsMask extends Wrapper { return $this->checkMask(Constants::PERMISSION_DELETE) and parent::isDeletable($path); } + public function isSharable($path) { + return $this->checkMask(Constants::PERMISSION_SHARE) and parent::isSharable($parm); + } + public function getPermissions($path) { return $this->storage->getPermissions($path) & $this->mask; } |