Closed (fixed)
Project:
IMCE
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2010 at 16:23 UTC
Updated:
25 Jul 2010 at 13:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
harcher commentedThis never happened to anyone else??
Comment #2
quwat commentedComment #3
quwat commentedYou are lucky man, how did you do that. Everybody wanna get rid of it and you are sad over the loss. It sucks man.
Comment #4
harcher commentedsome people need it and some don't :)
Comment #5
ufku commentedFile browser tab can be turned on/off in profile settings at admin/settings/imce
Comment #6
harcher commentedNope can't find it...
I've already set a imce profile and assigned the correct user role to it. Then when I go to the profile setting page at "admin/settings/imce/profile/edit/2", there isn't on/off setting there.
And no on/off setting here: admin/settings/imce
Comment #7
ufku commentedplease try beta3.
Comment #8
ashtonium commentedI'm testing out 2.x-beta3 and I'm getting some odd behavior here. I've gone in and checked the box for "Display file browser tab in user profile pages." on all my IMCE profiles, but it's only showing up on my "admin" profile. For the other profiles, the tab doesn't show up until I click on the "edit" tab--the "file browser" tab then shows up but disappears again when I click back to the "view" tab.
Comment #9
ashtonium commentedAfter a little more digging, it looks like
$user->rolesis being built differently on the user/[uid] page:While on the user/[uid]/edit page we have:
$account->roles, however, is consistent on both pages, and looks to contain whatimce_user_profile()is looking for. So if we pass $account instead of $user inimce_user_page_access()then it seems to work.I've attached a patch for this small change, but let me know if there's a better solution (or a reason we shouldn't be passing $account here).
Comment #10
ufku commentedThis is already applied to 2.x
OTH, the bug here is not an IMCE bug. There must be another module causing incorrect roles array. You should identify it and open an issue against it.