Skip to content

Commit

Permalink
fix: disable kudos button in the user card for logged-in user - Meeds…
Browse files Browse the repository at this point in the history
…-io/meeds#2197 - EXO-71739 (#501)

This fix will disable the kudos button in the user card for the logged
in user
  • Loading branch information
ahamdi authored and exo-swf committed Jun 25, 2024
1 parent 414edbd commit 1559aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kudos-webapps/src/main/webapp/vue-app/js/Kudos.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function registerExternalExtensions(title) {
class: 'fas fa-award',
additionalClass: 'mt-1',
order: 20,
enabled: (profile) => profile.enabled && !profile.deleted,
enabled: (profile) => profile.enabled && !profile.deleted && profile.username !== eXo.env.portal.userName,
click: (profile) => {
const type = profile.prettyName ? 'SPACE_PROFILE' : 'USER_PROFILE';
const id = profile.prettyName ? profile.id : profile.username;
Expand Down

0 comments on commit 1559aa0

Please sign in to comment.