diff options
Diffstat (limited to 'apps/user_migrate/ajax/export.php')
-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(); |