mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Merge branch 'develop_bitOut' into consoleCle
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export class ChatPermission{
|
||||
export class ChatPermission {
|
||||
access = 541;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user