mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +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
|
||||
@ -923,9 +924,9 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
if((isNaN(parseInt(owner)) || parseInt(owner) < 0) && options && typeof options.find == "function")
|
||||
{
|
||||
let resource = options.find(function (element)
|
||||
{
|
||||
return element.id == owner;
|
||||
}) || {};
|
||||
{
|
||||
return element.id == owner;
|
||||
}) || {};
|
||||
if(resource && resource.resources)
|
||||
{
|
||||
let matching_participant = resource.resources.filter(id => typeof event.participants[id] != "undefined");
|
||||
|
Loading…
Reference in New Issue
Block a user