Closed (fixed)
Project:
filedepot
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Dec 2012 at 08:17 UTC
Updated:
27 May 2014 at 15:18 UTC
Jump to comment: Most recent
except file owner, user with same role who have access to filedepot cannot download file but can perform all other actions.
Comments
Comment #1
umar.adil commentedFile: 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.
Comment #2
blainelang commentedUmar, 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.
Comment #3
_timpatrick commentedThanks Umar, I have tested and committed the fix.