summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorraghunayyar <me@iraghu.com>2014-02-20 13:24:41 +0530
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:53:52 +0200
commit16fb48f2ebf9e7c67972fa74e8a421c9ce694fba (patch)
tree1746f94e94791f251b4591b37911135d6f1744fd /settings/ajax
parent63645461f01c915ac0a4aadd0b81ab534209cdbc (diff)
downloadnextcloud-server-16fb48f2ebf9e7c67972fa74e8a421c9ce694fba.tar.gz
nextcloud-server-16fb48f2ebf9e7c67972fa74e8a421c9ce694fba.zip
Adds admin check on groupname changes.
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/changegroupname.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings/ajax/changegroupname.php b/settings/ajax/changegroupname.php
index cbf1e3e5e86..2b149b2bba5 100644
--- a/settings/ajax/changegroupname.php
+++ b/settings/ajax/changegroupname.php
@@ -4,6 +4,8 @@
OCP\JSON::callCheck();
OC_JSON::checkLoggedIn();
+OCP\JSON::checkAdminUser();
+
$l=OC_L10N::get('core');
$groupname = $_POST["groupname"];