Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Are sub/method synonyms acceptable coding practice?

by Anonymous Monk
on Nov 19, 2005 at 13:47 UTC ( [id://510086]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510086]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-20 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found