Skip to content

Commit

Permalink
Fixed: User without permissions cannot change the feature(#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Apr 22, 2024
1 parent d652ec8 commit ef54890
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/UserDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
<ion-label>{{ translate('Username') }}</ion-label>
<ion-label slot="end">{{ selectedUser.userLoginId }}</ion-label>
</ion-item>
<ion-item>
<ion-toggle :disabled="!hasPermission(Actions.APP_UPDT_BLOCK_LOGIN)" @click.prevent="updateUserLoginStatus($event)" :checked="selectedUser.enabled === 'N'">
<ion-item :disabled="!hasPermission(Actions.APP_UPDT_BLOCK_LOGIN)" >
<ion-toggle @click.prevent="updateUserLoginStatus($event)" :checked="selectedUser.enabled === 'N'">
{{ translate("Block login") }}
</ion-toggle>
</ion-item>
Expand Down Expand Up @@ -317,8 +317,8 @@
</ion-card-title>
</ion-card-header>
<ion-list>
<ion-item>
<ion-toggle :disabled="!hasPermission(Actions.APP_UPDT_PICKER_CONFG)" @click.prevent="updatePickerRoleStatus($event)" :checked="selectedUser.isWarehousePicker === true">
<ion-item :disabled="!hasPermission(Actions.APP_UPDT_PICKER_CONFG)">
<ion-toggle @click.prevent="updatePickerRoleStatus($event)" :checked="selectedUser.isWarehousePicker === true">
{{ translate("Show as picker") }}
</ion-toggle>
</ion-item>
Expand Down

0 comments on commit ef54890

Please sign in to comment.