Skip to content

Commit db7ca53

Browse files
author
Frank Karlitschek
committed
backport fix admin check
1 parent 727d95f commit db7ca53

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

Diff for: apps/files_encryption/settings.php

+2
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','type_blacklist','jpg,png,jpeg,avi,mpg,mpeg,mkv,mp3,oga,ogv,ogg'));
1113
$enabled=(OCP\Config::getAppValue('files_encryption','enable_encryption','true')=='true');

Diff for: apps/files_external/settings.php

+2
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');

Diff for: apps/user_ldap/settings.php

+3
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');

Diff for: apps/user_webdavauth/settings.php

+2
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)