Closed (fixed)
Project:
Ultimate Cron
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2011 at 11:12 UTC
Updated:
11 Dec 2011 at 12:41 UTC
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
Comment #1
gielfeldt commentedHi 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 ...
Comment #2
gielfeldt commentedThere. 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.
Comment #3
gielfeldt commentedComment #4
gielfeldt commentedHi Damien
Do you still experience the issue with the latest dev version?
Comment #5
gielfeldt commented