Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(templates): fix account users permission (#1012)
Browse files Browse the repository at this point in the history
PR Close #1012
  • Loading branch information
tamazlykar authored Mar 29, 2018
1 parent 9ccaba9 commit a0ad78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/template/template-tags/template-tags.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class TemplateTagsComponent extends TagsComponent<BaseTemplateModel> {
@Input() public tags: Array<Tag>;

public get hasPermissions(): boolean {
return this.entity.account === this.authService.user.username || this.authService.isAdmin();
return this.entity.account === this.authService.user.account || this.authService.isAdmin();
}

constructor(
Expand Down

0 comments on commit a0ad78c

Please sign in to comment.