except file owner, user with same role who have access to filedepot cannot download file but can perform all other actions.

Comments

umar.adil’s picture

Status: Active » Fixed

File: filedepot/lib-ajaxserver.php

Replaced:
- if ($filedepot->checkPermission($retval['cid'], 'view', 0, FALSE)) {
With:
+ if ($filedepot->checkPermission($retval['cid'], 'view', 0, TRUE)) {

In Function: filedepotAjaxServer_loadFileDetails()

Reason:
Here if Admin permissions are given to role i.e. from admin>people>permissions then we need to override the folder permissions so I have passed true to override folder permissions with Admin permission in checkPermission function.

blainelang’s picture

Status: Fixed » Needs review

Umar, thanks for your bug report and recommended change but don't mark it as fixed yet. It needs to be reviewed and if accepted, then committed if it's really a bug or accepted change. If not, then it may be set to a different fixed status but issues need to go through a review process.

_timpatrick’s picture

Status: Needs review » Fixed

Thanks Umar, I have tested and committed the fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.