summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/setpermissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/ajax/setpermissions.php')
-rw-r--r--apps/files_sharing/ajax/setpermissions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/setpermissions.php b/apps/files_sharing/ajax/setpermissions.php
index 8e0bac0b06f..7ee8f0e57bd 100644
--- a/apps/files_sharing/ajax/setpermissions.php
+++ b/apps/files_sharing/ajax/setpermissions.php
@@ -2,6 +2,7 @@
$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
+OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php');
$source = "/".OC_User::getUser()."/files".$_GET['source'];
@@ -9,4 +10,4 @@ $uid_shared_with = $_GET['uid_shared_with'];
$permissions = $_GET['permissions'];
OC_Share::setPermissions($source, $uid_shared_with, $permissions);
-?> \ No newline at end of file
+?>