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

CommentFileSizeAuthor
#4 userloginbar_perms.patch1.09 KBrfay

Comments

sudeepg’s picture

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

Witch’s picture

Same problem here

pukku’s picture

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).

rfay’s picture

StatusFileSize
new1.09 KB

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

scotwith1t’s picture

Status: Needs review » Reviewed & tested by the community

seems to work no problem.