Commit 143d0292 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): more explicit types

1 merge request!581WIP: Permissions
Pipeline #87368515 running with stages
......@@ -57,7 +57,7 @@ export class ThumbsDownButton implements DoCheck {
this.checkPermissions();
}
private checkPermissions() {
private checkPermissions(): void {
if (this.featuresService.has('permissions')) {
this.enabled = this.permissionsService.canInteract(
this.object,
......
......@@ -63,7 +63,7 @@ export class ThumbsUpButton implements DoCheck, OnChanges {
this.checkPermissions();
}
private checkPermissions() {
private checkPermissions(): void {
if (this.featuresService.has('permissions')) {
this.enabled = this.permissionsService.canInteract(
this.object,
......
......@@ -54,7 +54,7 @@ export class RemindButton {
enabled: boolean = true;
private checkPermissions() {
private checkPermissions(): void {
if (this.featuresService.has('permissions')) {
this.enabled = this.permissionsService.canInteract(
this.object,
......
......@@ -308,7 +308,7 @@ export class PosterComponent {
this.errorMessage = msg;
}
private checkPermissions() {
private checkPermissions(): void {
// check whether we're posting to a group or a channel
const entity: any = this.container
? this.container
......
......@@ -76,7 +76,7 @@ export class SettingsDisableChannelComponent implements OnInit {
creator.present();
}
private checkPermissions() {
private checkPermissions(): void {
if (this.featuresService.has('permissions')) {
this.enabled = this.permissionsService.canInteract(
this.session.getLoggedInUser(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment