mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 04:56:53 +01:00
lint for eslint
This commit is contained in:
parent
b7e2013589
commit
e2093436ac
24 changed files with 79 additions and 74 deletions
|
|
@ -11,12 +11,12 @@ import { ObjectWithPermissions } from '../data/object-with-permissions'
|
|||
import { PermissionsService } from '../services/permissions.service'
|
||||
|
||||
@Directive({
|
||||
selector: '[ifOwner]',
|
||||
selector: '[appIfOwner]',
|
||||
})
|
||||
export class IfOwnerDirective implements OnInit, OnChanges {
|
||||
// The role the user must have
|
||||
@Input()
|
||||
ifOwner: ObjectWithPermissions
|
||||
appIfOwner: ObjectWithPermissions
|
||||
|
||||
createdView: EmbeddedViewRef<any>
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ export class IfOwnerDirective implements OnInit, OnChanges {
|
|||
) {}
|
||||
|
||||
public ngOnInit(): void {
|
||||
if (this.permissionsService.currentUserOwnsObject(this.ifOwner)) {
|
||||
if (this.permissionsService.currentUserOwnsObject(this.appIfOwner)) {
|
||||
if (!this.createdView)
|
||||
this.createdView = this.viewContainerRef.createEmbeddedView(
|
||||
this.templateRef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue