eZ Community » Forums » Feedback & ideas about the eZ... » Problem with SiteAccessRules and "-"...
expandshrink

Problem with SiteAccessRules and "-" in the name of the view

Problem with SiteAccessRules and "-" in the name of the view

Friday 05 April 2013 10:45:24 am - 2 replies

I just noticed that in the method eZModule :: accessAllowed, which allows me to test if a module is accessible, it contains a bug in the regular expression that splits the string "ModuleName / ViewName" -> # ([a-zA-Z0-9_] +) / ([a-zA-Z0-9_] +) #.
It does not take into account "-", so if the sight of a module contains a "-" the rule will not work.

Saturday 13 July 2013 5:03:29 pm

Hey Julien,

 thanks for contributing. Thats great happy.gif Emoticon  Did you report your bug to http://jira.ez.no ??

Cheers Chris

Modified on Wednesday 17 July 2013 1:03:50 pm by Christoph Stollwerk

Tuesday 16 July 2013 4:11:06 pm

Hi

A bug report is always welcome ! (and of course a pull-request is usually acclaimed :-P)

Modified on Thursday 18 July 2013 12:15:33 pm by Jérôme Vieilledent

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from