diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 18:50:31 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 18:50:31 +0200 |
commit | 70cea18cce0fcdb4d8118ff2d7abccc922417a6a (patch) | |
tree | 7f8c476cb75b38fea3ed4ad555f00885f6da2670 /apps/user_migrate | |
parent | dc7cdda5ccc7d40bf9865e1af5a7846782ec700b (diff) | |
download | nextcloud-server-70cea18cce0fcdb4d8118ff2d7abccc922417a6a.tar.gz nextcloud-server-70cea18cce0fcdb4d8118ff2d7abccc922417a6a.zip |
ported getUser
Diffstat (limited to 'apps/user_migrate')
-rwxr-xr-x[-rw-r--r--] | apps/user_migrate/ajax/export.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_migrate/ajax/export.php b/apps/user_migrate/ajax/export.php index 99503cad142..874c0428285 100644..100755 --- a/apps/user_migrate/ajax/export.php +++ b/apps/user_migrate/ajax/export.php @@ -28,8 +28,8 @@ OC_JSON::checkLoggedIn(); OC_Util::checkAppEnabled('user_migrate'); // Which operation if( $_GET['operation']=='create' ){ - $uid = !empty( $_POST['uid'] ) ? $_POST['uid'] : OC_User::getUser(); - if( $uid != OC_User::getUser() ){ + $uid = !empty( $_POST['uid'] ) ? $_POST['uid'] : OCP\USER::getUser(); + if( $uid != OCP\USER::getUser() ){ // Needs to be admin to export someone elses account OC_JSON::error(); die(); |