We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Assigning file access permissions

Development and Programming

Steve Blair's avatar
Steve Blair
3 posts
13 years ago
Steve Blair's avatar Steve Blair

I’m looking for a way to assign file access permissions to particular user groups on a file by file basis. So, something like: group 1 can access file-A, and groups 2 & 3 can access file-B.

I plan on building a custom front-end for users that will display a list of the files they can download. What I need is a way for admins to assign the permissions from the control panel, preferably in the File Manager.

       
nicfeinstein's avatar
nicfeinstein
2 posts
13 years ago
nicfeinstein's avatar nicfeinstein

Steve I don’t know your exact relationship between members and files but you might be able to accomplish this by writing a series of {if} statement making file upload locations that are specific to member groups then use {if} statements to display certain files:

EX {if {member_group}== 2}

{exp:file:entries directory_id="3"}

<anchor href=”{file_url}” target=”_blank”>{file_name}</anchor>

{/exp:file:entries}

{/if}

**anchor should be “a” but the forum actual renders the <a

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.