diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-26 08:31:23 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-26 08:31:23 +0100 |
commit | c5fa8f1bdc08b07d03fcc9f9c84033960ec4e20f (patch) | |
tree | b2e989a445cf6afce925dea68765dc779dbc772a /apps/files/ajax | |
parent | 3766d98df6845397d810d583575c1fcedb51df90 (diff) | |
parent | 2c39aec8cb8ce7f74c8edd1111e7f7b6a70cf7c5 (diff) | |
download | nextcloud-server-c5fa8f1bdc08b07d03fcc9f9c84033960ec4e20f.tar.gz nextcloud-server-c5fa8f1bdc08b07d03fcc9f9c84033960ec4e20f.zip |
Merge pull request #12421 from owncloud/issue/6101-remove-namespace-permission-constants
Issue/6101 remove namespace permission constants
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index aeb0008a7b9..eb99d0644f7 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -9,7 +9,7 @@ OCP\JSON::setContentTypeHeader('text/plain'); // If not, check the login. // If no token is sent along, rely on login only -$allowedPermissions = OCP\PERMISSION_ALL; +$allowedPermissions = \OCP\Constants::PERMISSION_ALL; $errorCode = null; $l = \OC::$server->getL10N('files'); @@ -29,7 +29,7 @@ if (empty($_POST['dirToken'])) { \OC_User::setIncognitoMode(true); // return only read permissions for public upload - $allowedPermissions = OCP\PERMISSION_READ; + $allowedPermissions = \OCP\Constants::PERMISSION_READ; $publicDirectory = !empty($_POST['subdir']) ? $_POST['subdir'] : '/'; $linkItem = OCP\Share::getShareByToken($_POST['dirToken']); @@ -38,7 +38,7 @@ if (empty($_POST['dirToken'])) { die(); } - if (!($linkItem['permissions'] & OCP\PERMISSION_CREATE)) { + if (!($linkItem['permissions'] & \OCP\Constants::PERMISSION_CREATE)) { OCP\JSON::checkLoggedIn(); } else { // resolve reshares |