Menu

#137 module:page getRequiredRole typo (always return NULL role)

v2.0
open-later
nobody
5
2005-12-17
2005-10-19
Anonymous
No

Tapplication getRequiredRole do this:
$gname=empty($moduleName)?$pageName:"$moduleName.$pageName";

I switched dot '.' to ':' ("$moduleName.$pageName" to
"$moduleName:$pageName") and now Module:Page return the
same thing as a pattern or a "Page" secured in my module.

I check latest snapshot is affected too.

I have other issues with getRequiredRole especially
that role is an empty string instead of null when no
role is defined (except before the above fix when the
value was searched for an inexistant page).
I have obvious fix for the latter ... still
investigating while a not defined role is nto null
(wether from intialisation or a php5 novelty in foreach
index=>value ...)

Regards
Alban

Discussion

  • Alban Browaeys

    Alban Browaeys - 2005-10-19

    Logged In: YES
    user_id=490083

    I forgot to login ... just a handler to be able to reply to
    me if need be .

    Greetings
    Alban

     
  • Wei Zhuo

    Wei Zhuo - 2005-12-17

    Logged In: YES
    user_id=758865

    Any suggestion for fixing the problem?

     
  • Wei Zhuo

    Wei Zhuo - 2005-12-17
    • status: open --> open-later
     

Log in to post a comment.