Announcement

#1 2014-11-24 21:28:05

rstevens
Member
2014-11-17
16

How to set permission to download files for the group RegisteredUsers

Hi,

How can I set "High definition enabled" (permission to download) for the group RegisteredUsers?

Note: I do not want the guest user to have permission to download so I made changes so guests who try to download will be redirected to the login screen. To do that I've successfully done the following:

1. Install and activate the "Custom Download Link" plugin.

2. Do not allow guest users to download photos:
For user guest, check the checkbox "High definition enabled" at Administration Home > Users > Manage >  guest > edit

3. If a guest user tries to download a photo, redirect to the login page:

Comment line 111 in action.php:
//  do_error(401, 'Access denied e');

And add these two lines:
$redirect_url = get_root_url().'identification.php';
redirect($redirect_url);

Piwigo version: 2.7.2
PHP version: 5.4.x
MySQL version:
Piwigo URL: http://www.pictures.me

Last edited by rstevens (2014-11-24 21:46:12)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact