Skip to content
Permalink
Browse files Browse the repository at this point in the history
backport fix admin check
  • Loading branch information
Frank Karlitschek committed Dec 17, 2012
1 parent 727d95f commit db7ca53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/files_encryption/settings.php
Expand Up @@ -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','jpg,png,jpeg,avi,mpg,mpeg,mkv,mp3,oga,ogv,ogg'));
$enabled=(OCP\Config::getAppValue('files_encryption','enable_encryption','true')=='true');
Expand Down
2 changes: 2 additions & 0 deletions apps/files_external/settings.php
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions apps/user_ldap/settings.php
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions apps/user_webdavauth/settings.php
Expand Up @@ -21,6 +21,8 @@
*
*/

OC_Util::checkAdminUser();

if($_POST) {

if(isset($_POST['webdav_url'])) {
Expand Down

0 comments on commit db7ca53

Please sign in to comment.