Jako / FileDownloadR

Display a list of downloadable files without revealing the file url.
https://jako.github.io/FileDownloadR/
GNU General Public License v2.0
1 stars 1 forks source link

USergroups dont seem to work #3

Closed Lefthandmedia closed 1 year ago

Lefthandmedia commented 1 year ago

Hi, i have a page with this tag on it

[[!FileDownload? &mediaSourceId=`4` &groupByDirectory=`1` &userGroups=`1,2,3,4` ]]

This will give me a small login form on the page (name, password) when i fill this in the form disappears and the message You need to login to download files. appears. But not a list of links.

I do login in as a member of usergroup 4. When i remove the &userGroups=1,2,3,4 part the list does show up. So im not able to show this list of files only to a selected usergroup. Do i need to set something specific for these usergroups?

Using MODX 2.8.5

Any ideas?

RDG

Jako commented 1 year ago

You have to use user group names in the &userGroups property.

Jako commented 1 year ago

The properties description is updated in the docs: https://jako.github.io/FileDownloadR/usage/