nodebb-plugin-calendar icon indicating copy to clipboard operation
nodebb-plugin-calendar copied to clipboard

How to make other user cannot see the event answser?

Open SKKkeith opened this issue 2 years ago • 4 comments

I would like to disable user to see other user will join the event. Does it have any method to archive that ?

Thanks

SKKkeith avatar Jul 13 '21 09:07 SKKkeith

There's currently no built-in way to hide responses from other users. You could hide them visually with CSS but that wouldn't prevent a determined user from seeing them.

pitaj avatar Jul 14 '21 01:07 pitaj

There's currently no built-in way to hide responses from other users. You could hide them visually with CSS but that wouldn't prevent a determined user from seeing them.

Thanks so much for your reply. Actually I'm not much understand nodebb logic. My feature is that only admin can visit which user will join the event. so that I tried to hide by css and it's success. But may I know how can I check the current user privilege in the responses.tpl?

Thanks so much for your help

SKKkeith avatar Jul 14 '21 08:07 SKKkeith

@pitaj, should we create one more privilege for this functionality?

One more useful case - hide responses block from guests/spiders 🤔

Antosik avatar Aug 18 '21 18:08 Antosik

Yes a new privilege would need to be added to handle this.

pitaj avatar Aug 18 '21 19:08 pitaj