Author Topic: Is there any way to filter the file by the comment?  (Read 112 times)

0 Members and 1 Guest are viewing this topic.

Offline Nickfury671955

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
Is there any way to filter the file by the comment?
« on: June 14, 2019, 09:45:07 AM »
The file with "ban" comment will be hided to some users,
but some user who upload or delete can see it. Is it possible?
Thanks.
-Nick-

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Is there any way to filter the file by the comment?
« Reply #1 on: June 22, 2019, 10:03:31 AM »
it's not a feature HFS gives you, but i think it's technically possible using diff template and a user group.
I wouldn't advice trying unless you are practical with "computer languages".
I'll leave you some draft stuff that needs some more work probably

Code: [Select]
[file]
{.if| {.and|%item-comment% = ban| {.member of| my-special-group-of-users.} /and.} |
{.section|file|back=1.}
/if.}

omething like this would go in the diff template of the home item