]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if app is enabled
authorLukas Reschke <lukas@statuscode.ch>
Sun, 26 Aug 2012 14:05:40 +0000 (16:05 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Sun, 26 Aug 2012 14:05:40 +0000 (16:05 +0200)
apps/impress/documentation.php
apps/impress/index.php
apps/impress/player.php

index 17a97432a4942e791a67098f7a1204be9c36344c..1047262a677a5882878c20047a93597bb9300a1d 100755 (executable)
@@ -24,6 +24,7 @@
 require_once('lib/impress.php');
 
 OCP\User::checkLoggedIn();
+OCP\JSON::checkAppEnabled('impress');
 OCP\App::setActiveNavigationEntry( 'impress_index' );
 
 
index c7213d866144c6f66cfb6b1c1c1db1847320ad46..8648cb27e7b59b8a9412cda70664ca1cfb37cb6a 100755 (executable)
@@ -24,6 +24,7 @@
 require_once('lib/impress.php');
 
 OCP\User::checkLoggedIn();
+OCP\JSON::checkAppEnabled('impress');
 OCP\App::setActiveNavigationEntry( 'impress_index' );
 
 
index cd534757fb4c0062586589e212d1e8bdffcf6af2..1f2423d856fd5c76669f86b2455059a40047ce86 100755 (executable)
@@ -25,6 +25,7 @@ require_once('lib/impress.php');
 
 // Check if we are a user
 OCP\User::checkLoggedIn();
+OCP\JSON::checkAppEnabled('impress');
 
 $filename = OCP\Util::sanitizeHTML($_GET['file']);
 $title = OCP\Util::sanitizeHTML($_GET['name']);