diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-12-17 14:46:57 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-12-17 14:46:57 +0100 |
commit | c4ecbad0099c31611155e4712f2cac2b9ced26a4 (patch) | |
tree | 0ae9d5969a2ea5cd2de3b0f22f094aa3c92e5ead /apps/files_encryption | |
parent | e16be33384e49276ef9b483b6c8f667ad688e372 (diff) | |
download | nextcloud-server-c4ecbad0099c31611155e4712f2cac2b9ced26a4.tar.gz nextcloud-server-c4ecbad0099c31611155e4712f2cac2b9ced26a4.zip |
check if admin
Diffstat (limited to 'apps/files_encryption')
-rw-r--r-- | apps/files_encryption/settings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_encryption/settings.php b/apps/files_encryption/settings.php index 6b2b03211e2..94ff5ab94ba 100644 --- a/apps/files_encryption/settings.php +++ b/apps/files_encryption/settings.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +OC_Util::checkAdminUser(); + $tmpl = new OCP\Template( 'files_encryption', 'settings'); $blackList=explode(',', OCP\Config::getAppValue('files_encryption', 'type_blacklist', @@ -17,4 +19,4 @@ $tmpl->assign('encryption_enabled', $enabled); OCP\Util::addscript('files_encryption', 'settings'); OCP\Util::addscript('core', 'multiselect'); -return $tmpl->fetchPage();
\ No newline at end of file +return $tmpl->fetchPage(); |