In digging through the eventrepeat code (CVS version) after the recent patch to move event repeat editing into the main form, I noticed that user_access('create repeat events') is no longer called to control access to creation of event repeat nodes. As I read it, all it controls is whether somebody can see the link to the help screen for assistance in building repeats.

I'm guessing that when the hook_menu() changes were done to remove the tab that the access check simply never made it back in. eventrepeat_form_alter() seems to be the appropriate home for an access check call, or perhaps the need to have a repeat specific access check is gone and the permission should go away.

I'll give a similar caveat to another issue I posted recenty: this is from reading the code, not from taking it into a debugger.

CommentFileSizeAuthor
#2 eventrepeat_perm.patch1.74 KBseanbfuller

Comments

seanbfuller’s picture

You're probably right. Good catch. I'll put it on my list.

seanbfuller’s picture

StatusFileSize
new1.74 KB

Added the check in eventrepeat_form_alter

Note if the event already has a repeat pattern, I give the user the form. This seemed to be the least destructive way to handle things.

Posted here for review / testing before I commit to HEAD.

seanbfuller’s picture

Status: Active » Needs review
seanbfuller’s picture

Status: Needs review » Fixed

Applied to HEAD.

scott.mclewin’s picture

Sean - if you were looking to me for testing, sorry about missing your window. I didn't look on drupal.org for about a week for updates to issues.

Anonymous’s picture

Status: Fixed » Closed (fixed)