summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorjfd <jfd@lance>2012-08-25 03:13:59 +0200
committerjfd <jfd@lance>2012-08-25 03:13:59 +0200
commitdc3bec62113b39254c4488b0502d7852328fdc84 (patch)
treef2aaf10908d5d666d3b894befe6c02382f4f10d9 /apps/admin_audit
parente8ffd5c04249f84770e618eeb57f39c2e93afe35 (diff)
downloadnextcloud-server-dc3bec62113b39254c4488b0502d7852328fdc84.tar.gz
nextcloud-server-dc3bec62113b39254c4488b0502d7852328fdc84.zip
OC_Share no longer exists. remove hooks that would trigger require_once / autoloading failures, so i can at least upload files
Diffstat (limited to 'apps/admin_audit')
-rw-r--r--apps/admin_audit/appinfo/app.php3
-rw-r--r--apps/admin_audit/lib/hooks_handlers.php3
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/admin_audit/appinfo/app.php b/apps/admin_audit/appinfo/app.php
index e52f633cf14..2cbed5bf572 100644
--- a/apps/admin_audit/appinfo/app.php
+++ b/apps/admin_audit/appinfo/app.php
@@ -13,6 +13,9 @@ OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_write, 'OC
OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_read, 'OC_Admin_Audit_Hooks_Handlers', 'read');
OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_delete, 'OC_Admin_Audit_Hooks_Handlers', 'delete');
+//FIXME OC_Share does no longer exist
+/*
OCP\Util::connectHook('OC_Share', 'public', 'OC_Admin_Audit_Hooks_Handlers', 'share_public');
OCP\Util::connectHook('OC_Share', 'public-download', 'OC_Admin_Audit_Hooks_Handlers', 'share_public_download');
OCP\Util::connectHook('OC_Share', 'user', 'OC_Admin_Audit_Hooks_Handlers', 'share_user');
+*/ \ No newline at end of file
diff --git a/apps/admin_audit/lib/hooks_handlers.php b/apps/admin_audit/lib/hooks_handlers.php
index c5aec97d939..17a553837da 100644
--- a/apps/admin_audit/lib/hooks_handlers.php
+++ b/apps/admin_audit/lib/hooks_handlers.php
@@ -63,7 +63,8 @@ class OC_Admin_Audit_Hooks_Handlers {
$permissions = $params['permissions'];
$with = $params['with'];
$user = OCP\User::getUser();
- $rw = $permissions & OC_Share::WRITE ? 'w' : 'o';
+ //$rw = $permissions & OC_Share::WRITE ? 'w' : 'o'; //FIXME OC_Share no longer exists, hack to check permissions
+ $rw = $permissions & 1 ? 'w' : 'o';
self::log('Shared "'.$path.'" (r'.$rw.') with user "'.$with.'" by '.$user);
}
static protected function log($msg) {