in reply to Re: Are sub/method synonyms acceptable coding practice?
in thread Are sub/method synonyms acceptable coding practice?

package Everything::Node::user; ... ###################################################################### +####### # Sub # isGod # # Purpose # Checks to see if the given user is a god (in the gods group). # # Parameters # $recurse - for speed purposes, this assumes that the gods gro +up # is flat (it does not contain any other nodegroups that it + would # need to traverse). However, if the gods group does conta +in # nested groups, you can pass true here to check everything +. # Note that turning this on is significantly slower. # # Returns # True if the given user is a "god". False otherwise. #

Replies are listed 'Best First'.
Re^3: Are sub/method synonyms acceptable coding practice?
by demerphq (Chancellor) on Nov 19, 2005 at 14:14 UTC

    Perlmonks is on a different fork than that. Our isGod() lives in Everything::NodeBase and doesn't allow for usergroups to be a member of gods. If you want the recursive version on PM you need to use isApproved($USER,'gods').

    Afaik the permission systems on PM and Everything are now somewhat different. We have something called an accessrule which is used to make isApproved() more flexible and powerful.

    Maybe you know all this, but since you are anonymous I can't tell. :-)

    ---
    $world=~s/war/peace/g