mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
add inactivity page
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { UserStore } from 'src/app/store/user.service'
|
||||
import { SessionStore } from '../store/session.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class PermissionService {
|
||||
|
||||
userStore = UserStore
|
||||
SessionStore = SessionStore
|
||||
|
||||
constructor() { }
|
||||
|
||||
@@ -16,7 +16,7 @@ export class PermissionService {
|
||||
args = [args]
|
||||
}
|
||||
|
||||
return args.includes(this.userStore.user.Profile)
|
||||
return args.includes(this.SessionStore.user.Profile)
|
||||
}
|
||||
|
||||
role(args: any) {
|
||||
|
||||
Reference in New Issue
Block a user