Download & Extend

Getting access denied when I click the more link in block

Project:User Points Top Contributors
Version:6.x-1.2
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi I'm getting access denied errors when I click the more link (userpoints/list/all) on the bottom of the top contributors block. This doesn't happen to the Admin account but occurs for authenticated users. Permissions were set for all roles to view user points.

Comments

#1

Anyone??

#2

OK so I modified the userpoints_top_contributors.module file and changed it to the following.

// more link
          $content .= '<div class="more-link">'. l(t('more'), 'userpoints/list', array('title' => t('All users by !points', userpoints_translation())))

All I did was change from userpoints/list/all to userpoints/list..this is ok for the block that shows all top contributors but I am pulling my hair out over displaying user points by period to anyone other than super user 1 or admin. I've checked the permissions settings and I have enabled the necessary permissions for all users. I'm sure there has to be a way? Surely I cant be the only person whose stumbled on to this?

#3

Category:support request» bug report
Priority:normal» critical

Same issue for the Top contributors by period block. Any assistance is appreciated guys. This issue renders the blocks useless for productions use and this is a major drawback to the module.

#4

Hi Hilalsuhaib,

I've fixed the bug but unfortunately cannot upload the fix to
Drupal.org because of a CVS problem that everyone seems too busy to
help me with.

I've attached a copy of the patched module for your use.

Sorry about the delay.

AttachmentSize
userpoints_top_contributors.zip 30.7 KB

#5

Hi kmillecam,

Thanks so much! Do i just unzip and upload to modules folder like a standard upgrade? I dont know how to patch so this isn't patch is it?

H

#6

The original top contributors module did not have a folder named '.SVN', Can i not just up the module, install and info file?

#7

Just unzip and install.

I've included the full module, not a patch.

You can delete the .SVN folder.

HTH,
Kevin

#8

Thanks Kevin. It works!

#9

Thanks for this

Phil

#10

This should really be rolled into an official release...

#11

Hey, the fix of kmillecam really works. Thank You!

Again, this should be integrated to the module.

Saludos.

#12

Just want to say this works great with my Drupal 6.x install. If you don't see the effects immediately, clear your cache.

#13

Status:active» reviewed & tested by the community

#14

Here is the fix as a patch. Any chance cvs is working now and this can be included in a new release?

AttachmentSize
list_access_fix.patch 963 bytes

#15

subscribing. Thanks

#16

Also subscribing.

#17

I'm now getting "Access Denied" (while logged in as user 1) when I try to access the following pages:

http://www.mydomain.com/myuserpoints/27

As an admin, I shouldn't be denied from ANY page...

Not sure if this existed before the patch. Can anyone confirm the same experience?

#18

Status:reviewed & tested by the community» fixed

Ready for testing in development release.

#19

Status:fixed» closed (fixed)

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