File Module Privacy

SoftDesigns
SoftDesigns
@softdesigns
6 years ago
242 posts
How to restrict the "File" module, only to be viewed by profile owners and profile admins?
--
Can this be done thru ACP via GUI ?
thanks...
updated by @softdesigns: 08/26/18 05:54:33PM
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Depends which parts of the file module you want to restrict. In the ACP you can restrict by quota.

For menu items or file download in lists you probably want to edit your templates (or make a custom module).
{if jrProfile_is_profile_owner($_profile_id) || jrUser_is_admin()}
   ...show the file stuff...
{/if}



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Use {debug} in your template to see if $_profile_id is the correct variable.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SoftDesigns
SoftDesigns
@softdesigns
6 years ago
242 posts
@SteveX - Thanks for the info, we will study your notes...
--
BTW - Seems we previously noticed that you published custom JR Modules, and sometimes did JR Custom code work?
--
thanks,
Soft Designs, Inc.
People First, software second - Since 1985
michael
@michael
6 years ago
7,714 posts
SteveX has been using Jamroom longer than me.
SoftDesigns
SoftDesigns
@softdesigns
6 years ago
242 posts
Quote: SteveX has been using Jamroom longer than me.
@michael - Great news on that recomendation
--
@ultrajam - SteveX - Are you available for some JR custom work?
--
thanks,
Soft Designs, Inc.
People First, software second - Since 1985
updated by @softdesigns: 05/28/18 04:11:41PM
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
@softdesigns No, sorry, I’m fully occupied this year with a day job and my main project.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags