mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Fix client-side event status filter 'owner too' so group calendar shows events when a group member is an owner
This commit is contained in:
parent
038c1c811c
commit
d9ecc966bb
@ -696,8 +696,9 @@ var et2_calendar_event = /** @class */ (function (_super) {
|
||||
return pass;
|
||||
}
|
||||
// Show also events just owned by selected user
|
||||
if (filter == 'owner') {
|
||||
return owner == event.owner;
|
||||
// Group members can be owner too, those get handled when we check group memberships below
|
||||
if (filter == 'owner' && owner == event.owner) {
|
||||
return true;
|
||||
}
|
||||
// Get the relevant participant
|
||||
var participant = event.participants[owner];
|
||||
|
@ -898,9 +898,10 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
}
|
||||
|
||||
// Show also events just owned by selected user
|
||||
if(filter == 'owner')
|
||||
// Group members can be owner too, those get handled when we check group memberships below
|
||||
if(filter == 'owner' && owner == event.owner)
|
||||
{
|
||||
return owner == event.owner;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Get the relevant participant
|
||||
|
Loading…
Reference in New Issue
Block a user