MOO-cows Mailing List Archive
Re: [server] $server_options
In article <firstname.lastname@example.org>,
Kai Storbeck <email@example.com> wrote:
>We are working on a hack at this moment, which enables you to add a verb on
>$server_options, for example: protect_add_verb.
>When a builtin is called, the verb on $server_options (if found) MUST
>return 1 to complete itself.
>The advantage of it, is that you don't have to check on perms anymore, like
>with a property, making builtins wiz only.
I am not sure this is a good idea. All this means you are encouraging
the use of builtins, which I think is a bad idea. You are much better
off creating protect_* properties for all builtins (except maybe stuff
like tonum() and sqrt()) and then make the users use the wrapper
verbs. That way you can do any permissions checks you want, and
should you ever need to, you can change the verb (e.g. use a recycler
instead of create(), and what have you.)
PGP public key available - finger firstname.lastname@example.org
"The earth is but one country, and mankind its citizens." -- Bahá'u'lláh
GE/CS 3.1 d- s-:- a- C++++ ULIS++++$ P+++ L++++>+++++ E++ W++ N++ o+ K
w--- O@ M V- PGP+ t+ 5++ X? R@ tv- b++ DI++++ D++(+) G e++ h- r-- y-
Subject Index |