compare the correct uids

This commit is contained in:
Björn Schießle 2013-01-25 12:46:32 +01:00
parent 4271430e60
commit 64e853394c
2 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,7 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
</div>
</td>
<td class="remove">
<?php if($user['name']!=OC_User::getUser()):?>
<?php if($user['uid']!=OC_User::getUser()):?>
<a href="#" class="action delete" original-title="<?php echo $l->t('Delete')?>">
<img src="<?php echo image_path('core', 'actions/delete.svg') ?>" />
</a>

View File

@ -53,6 +53,7 @@ foreach($accessibleusers as $displayName => $uid) {
$users[] = array(
"name" => $name,
"uid" => $uid,
"groups" => join( ", ", /*array_intersect(*/OC_Group::getUserGroups($uid)/*, OC_SubAdmin::getSubAdminsGroups(OC_User::getUser()))*/),
'quota'=>$quota,
'isQuotaUserDefined'=>$isQuotaUserDefined,