Skip to content

Commit

Permalink
Revert "Allow for users that have either 'canViewLastSeenAt' or 'canS…
Browse files Browse the repository at this point in the history
…earchUsers' to view the widget"

This reverts commit 5b5a121.
  • Loading branch information
ekumanov committed Oct 29, 2023
1 parent f5faa7e commit 046fa6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/common/registerWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function (app) {
isDisabled: () => {
const loadWithInitialResponse = app.forum.attribute('afrux-forum-widgets-core.preferDataWithInitialLoad');

return (!loadWithInitialResponse && (!app.forum.attribute('canViewLastSeenAt') && !app.forum.attribute('canSearchUsers')))
return (!loadWithInitialResponse && (!app.forum.attribute('canViewLastSeenAt') || !app.forum.attribute('canSearchUsers')))
||
(loadWithInitialResponse && !app.forum.onlineUsers().length);
},
Expand Down

0 comments on commit 046fa6e

Please sign in to comment.