SF #415143 - Fixed selecting a different users calendar and it removing the current user

This commit is contained in:
jengo 2001-04-13 14:34:15 +00:00
parent 553a7ac66f
commit 16954060aa
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,8 @@
{ {
if($grants[$owner]) if($grants[$owner])
{ {
$grants[$phpgw_info['user']['account_id']] = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE + PHPGW_ACL_PRIVATE;
$rights = $grants[$owner]; $rights = $grants[$owner];
if ($rights == 0) if ($rights == 0)
{ {

View File

@ -126,6 +126,7 @@
<option value="<?php echo $grantor; ?>"<?php if($grantor==$owner) echo ' selected'; ?>><?php echo $phpgw->common->grab_owner_name($grantor); ?></option> <option value="<?php echo $grantor; ?>"<?php if($grantor==$owner) echo ' selected'; ?>><?php echo $phpgw->common->grab_owner_name($grantor); ?></option>
<?php <?php
} }
reset($grants);
?> ?>
</select> </select>
<NOSCRIPT><INPUT TYPE="submit" VALUE="<?php echo lang('Go!'); ?>"></NOSCRIPT></FONT> <NOSCRIPT><INPUT TYPE="submit" VALUE="<?php echo lang('Go!'); ?>"></NOSCRIPT></FONT>