FEU being redirected to admin login page if trying to access files upload by FEU

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

FEU being redirected to admin login page if trying to access files upload by FEU

Post by applejack »

If files are uploaded by FEU and they try to access a page where they should be able to view them it is redirecting the page to the admin login.

If I am also logged into admin (different user name and password) the correct page loads and the FEU's can access the files.

If files are uploaded by admin and FEU try to access a page where they should be able to view them it works fine.

Users and groups etc are all set up by admin not via Self Registration module.

In the FEU preferences I am not using cookies and I have checked Use Front-end User specific permissions? though I also tried unchecking this so I am pretty sure that it makes no difference.

The page cache is also off as it has to be.

I suspect it has got something to do with the session variables or system cache but I'll be blown if I know what.

I am using

CMS 1.5.4
Custom Content 1.5.3
FrontEndUsers 1.6.4
Uploads 1.4.1

And I don't use WYSIWYG

All help much appreciated before I either jump out of the window or throw my Mac out of it and I'm on the 5th floor ...
Last edited by applejack on Thu May 14, 2009 4:40 am, edited 1 time in total.

Website Design & Production
http://www.applejack.co.uk
larss
New Member
New Member
Posts: 6
Joined: Mon Aug 04, 2008 7:17 am

Re: FEU being redirected to admin login page if trying to access files upload by FEU

Post by larss »

I have the exact same issue.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: FEU being redirected to admin login page if trying to access files upload by

Post by applejack »

I am pretty sure it is because of the permissions setting allowed for FEU the same way the admin Groups such as designer and editor are assigned permissions for various things such as manage uploads, manage files etc etc.

In the FEU permissions preferences there is an option
Use Front-end User specific permissions?: (Normally, FEUSers permissions are the same as the equivalent Admin Area permissions like Add User, Add Group, etc. If you select this option, there will be separate permissions for FEUsers.)
But no where as far as I can see does it say how to go about doing this.

If you find out please let me know as I have spent hours and hours trying to resolve this issue.
Last edited by applejack on Fri May 15, 2009 12:19 pm, edited 1 time in total.

Website Design & Production
http://www.applejack.co.uk
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: FEU being redirected to admin login page if trying to access files upload by

Post by applejack »

Anyone i.e. Robert do you know how the set the permissions for FEU's so they can access files they have uploaded via the front end?

And yes in the Uploads setting for each category the correct FEU's are authorized and the Files in this directory can be listed is checked.
Last edited by applejack on Fri May 15, 2009 1:02 pm, edited 1 time in total.

Website Design & Production
http://www.applejack.co.uk
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: FEU being redirected to admin login page if trying to access files upload by

Post by applejack »

In FEU there is a Group named john and there is a user named john who is the only member of this group.
In Uploads there is a category named john for the FEU group john is Authorized to access and files are allowed to be listed in this directory.

john logs in then in one page he is allowed to view the files he has previously uploaded utilising this code in the page

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof($customcontent_loginname)}
	{cms_module module="Uploads" category=$customcontent_loginname mode="summary"}
{/if}
and this in the Uploads summary template so that john only get to see what he has uploaded

Code: Select all

{if $customcontent_loginname == $entry->author}
However if he has just uploaded a file (which uses a different page and works fine) and then tries to go to the page which enables him to view the uploads the page gets redirected to the admin login. However if in my same browser different window I am also logged into the admin (different username and password) then it works.

If I log out of admin it stops working as it should and I get redirected to the admin page yet again.

john is also a member of a FEU group named downloads which is also an Uploads category. Files in this category are uploaded by admin. On the page where john is able to access these files this does not get redirected to the admin login.

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('Downloads')}
	{cms_module module="Uploads" category="Downloads" mode="summary" template="downloads"}
{/if}
I tried it so that instead of downloads it was a different user who had uploaded via the frontend then it redirected to the admin login page again. So if files are uploaded by FEU the system is forcing them to login via admin.


Users and groups etc are all set up by admin not via Self Registration module.

In the FEU preferences I am not using cookies and I have checked Use Front-end User specific permissions? though I also tried unchecking this so I am pretty sure that it makes no difference.

The page cache is also off as it has to be.

Website Design & Production
http://www.applejack.co.uk
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: FEU being redirected to admin login page if trying to access files upload by

Post by applejack »

Anyone else having this same problem. I have installs on 2 different servers and they are both having the same issue.

Website Design & Production
http://www.applejack.co.uk
Post Reply

Return to “Modules/Add-Ons”