Project:UserLoginBar
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

Hi,

Just tried this module and wanted to disable the welcome message. However the admin link (admin/settings/userloginbar) gives access denied error. Checking the module permissions page, this module was not listed.

Any thoughts as to why this might be?

Regards,

Marius

Comments

#1

Try clearing the cache at performance (admin/settings/performance)? I'll look deeper into the problem.

#2

Same problem here

#3

Status:active» needs review

This is because the implementation of hook_menu provides the wrong access settings.

In userloginbar.module, in function userloginbar_menu, There is a line:

    'access arguments' => array('administrator content'),

This permission doesn't exist. This should be altered to look like:

    'access arguments' => array('administer site configuration'),

(or whatever permission you think it should be set to).

#4

Here's a patch for this. It creates a permission and uses that permission.

AttachmentSize
userloginbar_perms.patch 1.09 KB

#5

Status:needs review» reviewed & tested by the community

seems to work no problem.