Skip to content

Commit c4ecbad

Browse files
author
Frank Karlitschek
committed
check if admin
1 parent e16be33 commit c4ecbad

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

apps/files_encryption/settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* See the COPYING-README file.
77
*/
88

9+
OC_Util::checkAdminUser();
10+
911
$tmpl = new OCP\Template( 'files_encryption', 'settings');
1012
$blackList=explode(',', OCP\Config::getAppValue('files_encryption',
1113
'type_blacklist',
@@ -17,4 +19,4 @@
1719
OCP\Util::addscript('files_encryption', 'settings');
1820
OCP\Util::addscript('core', 'multiselect');
1921

20-
return $tmpl->fetchPage();
22+
return $tmpl->fetchPage();

apps/files_external/settings.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
2121
*/
2222

23+
OC_Util::checkAdminUser();
24+
2325
OCP\Util::addScript('files_external', 'settings');
2426
OCP\Util::addscript('3rdparty', 'chosen/chosen.jquery.min');
2527
OCP\Util::addStyle('files_external', 'settings');

apps/user_ldap/settings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
2121
*
2222
*/
23+
24+
OC_Util::checkAdminUser();
25+
2326
$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_agent_password', 'ldap_base', 'ldap_base_users', 'ldap_base_groups', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_group_filter', 'ldap_display_name', 'ldap_group_display_name', 'ldap_tls', 'ldap_turn_off_cert_check', 'ldap_nocase', 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr', 'ldap_group_member_assoc_attribute', 'ldap_cache_ttl', 'home_folder_naming_rule');
2427

2528
OCP\Util::addscript('user_ldap', 'settings');

apps/user_webdavauth/settings.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*
2222
*/
2323

24+
OC_Util::checkAdminUser();
25+
2426
if($_POST) {
2527

2628
if(isset($_POST['webdav_url'])) {

0 commit comments

Comments
 (0)