This commit is contained in:
Peter Maquiran
2022-12-20 17:14:23 +01:00
parent be617c0fe3
commit 5652043b8a
22 changed files with 285 additions and 234 deletions
+25 -1
View File
@@ -1,3 +1,27 @@
import { SessionStore } from 'src/app/store/session.service';
export class AgendaPermission{
access = 530
private hasOwnCalendar = false
private hasSharedCalendar = false
constructor() {
if(SessionStore.exist) {
for (let calendar of SessionStore?.user?.OwnerCalendars) {
this.hasOwnCalendar = true
}
for (let sharedCalendar of SessionStore?.user?.SharedCalendars) {
this.hasSharedCalendar = true
}
}
}
get access () {
if(this.hasOwnCalendar || this.hasSharedCalendar) {
return 530
} else {
return null
}
}
}
+2 -2
View File
@@ -1,3 +1,3 @@
export class ChatPermission{
export class ChatPermission {
access = 541;
}
}