fix user creation, checkSubAdminUser is only available in OC_JSON
This commit is contained in:
parent
b3221f0e4e
commit
004dd73c5e
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
OCP\JSON::checkSubAdminUser();
|
OC_JSON::checkSubAdminUser();
|
||||||
|
|
||||||
if(OC_User::isAdminUser(OC_User::getUser())) {
|
if(OC_User::isAdminUser(OC_User::getUser())) {
|
||||||
$groups = array();
|
$groups = array();
|
||||||
|
|
Loading…
Reference in New Issue