Closed (fixed)
Project:
OG User Roles
Version:
5.x-2.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 May 2008 at 18:11 UTC
Updated:
24 May 2008 at 18:42 UTC
If a user has an OGR role which allows file download, the user was unable to download private files because those files were outside of group context.
Fixed this problem by creating group context when user clicks on anything in files path. May need to modify this in the future since the files path may not necessarily be in a directory titled files.
In og_user_roles_all_roles($user):
// Files
if (arg(0) == 'files' || arg(1) == 'files') {
$location = 162;
if ($_SESSION['og_last']) {
$gid = $_SESSION['og_last']->nid;
$group_node = node_load($gid);
og_set_group_context($group_node);
}
}
Comments
Comment #1
somebodysysop commentedComment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.