diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-30 23:05:10 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-30 23:17:18 +0200 |
commit | f4782a76907cf010faf9f4cd7deb3a67a2d02de9 (patch) | |
tree | ff3236d0f2785bc6946e84a80e69cf65a1fd6559 /apps/files_sharing | |
parent | ddd359989909add47912ad358bec55a924907d81 (diff) | |
download | nextcloud-server-f4782a76907cf010faf9f4cd7deb3a67a2d02de9.tar.gz nextcloud-server-f4782a76907cf010faf9f4cd7deb3a67a2d02de9.zip |
Check if the application is actually enabled
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/ajax/getitem.php | 1 | ||||
-rw-r--r-- | apps/files_sharing/ajax/setpermissions.php | 3 | ||||
-rw-r--r-- | apps/files_sharing/ajax/share.php | 3 | ||||
-rw-r--r-- | apps/files_sharing/ajax/unshare.php | 3 | ||||
-rw-r--r-- | apps/files_sharing/ajax/userautocomplete.php | 1 | ||||
-rw-r--r-- | apps/files_sharing/get.php | 1 | ||||
-rw-r--r-- | apps/files_sharing/list.php | 1 |
7 files changed, 10 insertions, 3 deletions
diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php index e7bda0f6144..8d51c146523 100644 --- a/apps/files_sharing/ajax/getitem.php +++ b/apps/files_sharing/ajax/getitem.php @@ -2,6 +2,7 @@ $RUNTIME_NOAPPS = true; require_once('../../../lib/base.php'); +OC_JSON::checkAppEnabled('files_sharing'); require_once('../lib_share.php'); $userDirectory = "/".OC_User::getUser()."/files"; 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 +?> diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php index e672cf02403..6a2b45b3a7d 100644 --- a/apps/files_sharing/ajax/share.php +++ b/apps/files_sharing/ajax/share.php @@ -2,6 +2,7 @@ $RUNTIME_NOAPPS = true; require_once('../../../lib/base.php'); +OC_JSON::checkAppEnabled('files_sharing'); require_once('../lib_share.php'); $userDirectory = "/".OC_User::getUser()."/files"; @@ -26,4 +27,4 @@ foreach ($sources as $source) { } } -?>
\ No newline at end of file +?> diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php index b9230d257b7..a19a85cfda3 100644 --- a/apps/files_sharing/ajax/unshare.php +++ b/apps/files_sharing/ajax/unshare.php @@ -2,10 +2,11 @@ $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']; $uid_shared_with = $_GET['uid_shared_with']; OC_Share::unshare($source, $uid_shared_with); -?>
\ No newline at end of file +?> diff --git a/apps/files_sharing/ajax/userautocomplete.php b/apps/files_sharing/ajax/userautocomplete.php index a3158cf72d6..21516c3d091 100644 --- a/apps/files_sharing/ajax/userautocomplete.php +++ b/apps/files_sharing/ajax/userautocomplete.php @@ -4,6 +4,7 @@ $RUNTIME_NOAPPS = true; require_once('../../../lib/base.php'); OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('files_sharing'); $users = array(); $ocusers = OC_User::getUsers(); diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php index 33918bf9e7d..083f48e1127 100644 --- a/apps/files_sharing/get.php +++ b/apps/files_sharing/get.php @@ -3,6 +3,7 @@ $RUNTIME_NOAPPS=true; //no need to load the apps $RUNTIME_NOSETUPFS=true; //don't setup the fs yet require_once '../../lib/base.php'; +OC_JSON::checkAppEnabled('files_sharing'); require_once 'lib_share.php'; //get the path of the shared file diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php index a5f99f38041..721620dc922 100644 --- a/apps/files_sharing/list.php +++ b/apps/files_sharing/list.php @@ -24,6 +24,7 @@ require_once('../../lib/base.php'); require_once('lib_share.php'); OC_Util::checkLoggedIn(); +OC_Util::checkAppEnabled('files_sharing'); OC_App::setActiveNavigationEntry("files_sharing_list"); |