Keyword

Permissions for downloading attachment

  • Pal Danyi
  • Pal Danyi's Avatar Topic Author
  • Offline
  • New Member
More
7 years 6 months ago #160892 by Pal Danyi
Permissions for downloading attachment was created by Pal Danyi
I only want to let download K2 article attachments for a certain group of users (in Joomla 3.6). How can I set up permissions so that other users can read the article but not able to download the attachment?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #160953 by Krikor Boghossian
Replied by Krikor Boghossian on topic Permissions for downloading attachment
Hello,

You can use overrides and depending on the user's group docs.joomla.org/Accessing_the_current_user_object you can show/ hide that block.

Furthermore you will need a system plugin in order to block users who want to use a different template.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Pal Danyi
  • Pal Danyi's Avatar Topic Author
  • Offline
  • New Member
More
7 years 6 months ago #161005 by Pal Danyi
Replied by Pal Danyi on topic Permissions for downloading attachment
Hi Krikor,
Thanks for your response. What kind of system plugin do you think of?

Meanwhile I found an easy and elegant solution here, it works for my purpose:

www.renegade-empire.com/show-k2-attachments-only-to-logged-in-members/

Thx
Pal

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #161023 by Krikor Boghossian
Replied by Krikor Boghossian on topic Permissions for downloading attachment
This is a nice solution but if you revert to the default protostar template the attachments will show up.

An extension which prevents this is Admin Tools (I think the PRO version though).

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum