When I try loading some module schedule pages, e.g. admin/config/system/cron/settings/rules_cron, I'm getting an Access Denied error, even though a) I've set the permissions correctly, b) only some pages have that problem, c) I was previously able to open the page. It's rather confusing.

Comments

gielfeldt’s picture

Assigned: Unassigned » gielfeldt

Hi Damien

Thanks for the bug report. It seems that some modules (e.g. Rules) does not make their cron-hook available before the hook_init() phase. "Unfortunately" I check for existance of these cron hooks in my access handler, and at this time it does not exist yet for Rules.

I think perhaps I'll move that particular check to the form function. Not sure if it's within Drupal guidelines not to expose your hook implementations until hook_init(), or if it breaks assumptions elsewhere, like it did for me. However, there's no reason why I can't support this paradigm, so I'll include support for it asap.

EDIT: Come to think of it, I should really return a "not found" if the function doesn't exist, instead of access denied ...

gielfeldt’s picture

There. I've committed it to the dev branch. Actually I removed my custom access handler entirely, as it did not necessarily make sense any more.

Tarball not built yet, but available through git.

gielfeldt’s picture

Status: Active » Needs review
gielfeldt’s picture

Assigned: gielfeldt » Unassigned

Hi Damien

Do you still experience the issue with the latest dev version?

gielfeldt’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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