Merge branch 'develop_bitOut' into consoleCle

This commit is contained in:
Peter Maquiran
2022-12-20 17:16:55 +01:00
23 changed files with 293 additions and 238 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;
}
}