Access denied to Persistent Login functions

ggamba - May 4, 2008 - 12:35
Project:Persistent Login
Version:6.x-1.4-beta2
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi all,

I have installed Persistent Login 6.x-1.4-beta2 on a Drupal 6.2 system. Module is enabled and the link "Remember me" correctly appears under the Login fields. But once logged in, the page /persistent_login/erase/1 gives me an "Access denied" error. Also, there is no "Persisten Login" link under /admin.
Any hints about what could be wrong?

Thanks a lot in advance and all the best
Gabriele

#1

wwwoliondorcom - May 18, 2008 - 08:28

hi,

I have the same problem, nothing at admin/settings/persistent_login

I get an access denied

Thanks.

#2

haffelt - May 22, 2008 - 20:13

I can report this error, too - same installation as mentioned above. The link /persistent_login/erase/(someNumber) results in an "Access denied" -page.

#3

chly23 - May 29, 2008 - 10:21
Status:active» needs review

There is a bug in menu hook.
'access' => user_access('administer Persistent Login') should be changed to 'access arguments' => array('administer Persistent Login').
I post a patch file. I hope it can help fix this bug.

AttachmentSize
persistent_login-access_bug.patch 911 bytes

#4

fasdalf@fasdalf.ru - June 7, 2008 - 08:36

Pacth works. Include it in next release, please.

#5

mr.andrey - June 27, 2008 - 18:26

After patch, I still don't see a link to administer persistent login under admin/settings

A.

#6

pants - August 7, 2008 - 00:34

I applied the patch and it came up with blank screen...

I applied the patch but didn't work

#7

pants - August 7, 2008 - 00:50

OK. I fixed the blank screen issue but I still don't see the settings page on the admin menus...

UPDATE: this is fixed. you have to start and stop the module...

Thanks!

#8

rightchoice2c_me - September 19, 2008 - 11:05

There are still some changes which I made.You can test this patch I hope this will definitely solves your problem.

AttachmentSize
persistent_login.patch 1.17 KB

#9

markus_petrux - September 21, 2008 - 12:21
Status:needs review» needs work

Just marked another issue as dup of this one.

http://drupal.org/node/285706

#10

markus_petrux - September 21, 2008 - 12:32
Status:needs work» needs review

Here's another patch that is working for me with Drupal 6.4.

In addition to fix the access denied issue, it also removes t() usage in menu item title/descriptions, redirects to user/x after reseting persistent logins and generates an access denied event if this function is requested by someone who is not authorized (anonymous users are not authorized, user cannot reset someone else's data unless user has admin permission).

AttachmentSize
persistent_login.module.patch 1.34 KB

#11

halkeye - September 23, 2008 - 17:18

Is there a reason you are removing the t()?

I'm going to be testing out the patch on my system but I chose to leave the t() in.

#12

markus_petrux - September 23, 2008 - 17:41

This is Drupal 6.x based, so menu item titles and Descriptions should no longer be wrapped in t().

http://drupal.org/node/140311

#13

GiorgosK - October 23, 2008 - 07:48

Patch on #8 worked for me (using D6.5)

#14

bjaspan - October 28, 2008 - 17:52
Status:needs review» fixed

Fixed.

#15

Anonymous (not verified) - November 11, 2008 - 18:01
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.