Commits
Vlad Nouski authored b6d515ff090
5 5 | import { Item } from '../../core/shared/item.model'; |
6 6 | import { DsoPageSingleFeatureGuard } from '../../core/data/feature-authorization/feature-authorization-guard/dso-page-single-feature.guard'; |
7 7 | import { Observable, of as observableOf } from 'rxjs'; |
8 8 | import { FeatureID } from '../../core/data/feature-authorization/feature-id'; |
9 9 | import { AuthService } from '../../core/auth/auth.service'; |
10 10 | |
11 11 | @Injectable({ |
12 12 | providedIn: 'root' |
13 13 | }) |
14 14 | /** |
15 - | * Guard for preventing unauthorized access to certain {@link Item} pages requiring manage mappings rights |
15 + | * Guard for preventing unauthorized access to certain {@link Item} pages requiring administrator rights |
16 16 | */ |
17 17 | export class ItemPageAccessControlGuard extends DsoPageSingleFeatureGuard<Item> { |
18 18 | constructor(protected resolver: ItemPageResolver, |
19 19 | protected authorizationService: AuthorizationDataService, |
20 20 | protected router: Router, |
21 21 | protected authService: AuthService) { |
22 22 | super(resolver, authorizationService, router, authService); |
23 23 | } |
24 24 | |
25 25 | /** |