summaryrefslogtreecommitdiffstats
path: root/lib/migrate.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-14 23:41:34 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-14 23:41:34 +0100
commit388bb6a5e1e8465b11f33f1820f023db271ba9d9 (patch)
tree6fee16bd0151b051cfabd97db9d285e6b8b69c29 /lib/migrate.php
parente475c26f1ae3adec2716b4ba59f92382db2bc24e (diff)
parent71ae41716a56305ab9509571c0a84311b9f3eb63 (diff)
downloadnextcloud-server-388bb6a5e1e8465b11f33f1820f023db271ba9d9.tar.gz
nextcloud-server-388bb6a5e1e8465b11f33f1820f023db271ba9d9.zip
Merge branch 'master' into fixing-unused-and-undefined-in-master
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/migrate.php b/lib/migrate.php
index 8fabbbca927..87bdd016fe4 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -219,7 +219,7 @@ class OC_Migrate{
// We need to be an admin if we are not importing our own data
if(($type == 'user' && self::$uid != $currentuser) || $type != 'user' ) {
- if( !OC_Group::inGroup( OC_User::getUser(), 'admin' )) {
+ if( !OC_User::isAdminUser($currentuser)) {
// Naughty.
OC_Log::write( 'migration', 'Import not permitted.', OC_Log::ERROR );
return json_encode( array( 'success' => false ) );