mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
remove calendar id
This commit is contained in:
@@ -11,6 +11,7 @@ import { catchError } from "rxjs/operators";
|
||||
import { SessionStore } from '../store/session.service';
|
||||
import { calendarInterface } from '../models/user.model';
|
||||
import { Subscribe } from './subcribe';
|
||||
import { EventOutputDTO } from './Repositorys/Agenda/model/eventDTOOutput';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -418,19 +419,8 @@ export class EventsService {
|
||||
|
||||
isMyEvent(event: any) {
|
||||
|
||||
for (let calendar of SessionStore.user.OwnerCalendars) {
|
||||
if(event.CalendarId == calendar.CalendarId) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
for (let sharedCalendar of SessionStore.user.SharedCalendars) {
|
||||
if(event.CalendarId == sharedCalendar.CalendarId) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
const data: any = event
|
||||
return data.Organizer.Id == SessionStore.user.UserId
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user