Skip to content
Snippets Groups Projects
Commit 6861d427 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #928 from owncloud/fix_permissioncheck

check if admin
parents e16be333 c4ecbad0
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......@@ -20,6 +20,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
OC_Util::checkAdminUser();
OCP\Util::addScript('files_external', 'settings');
OCP\Util::addscript('3rdparty', 'chosen/chosen.jquery.min');
OCP\Util::addStyle('files_external', 'settings');
......
......@@ -20,6 +20,9 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
OC_Util::checkAdminUser();
$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');
OCP\Util::addscript('user_ldap', 'settings');
......
......@@ -21,6 +21,8 @@
*
*/
OC_Util::checkAdminUser();
if($_POST) {
if(isset($_POST['webdav_url'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment