Res: [Sputnik-list] Permissions
Sérgio Medeiros
tampo_8 at yahoo.com
Sat Feb 23 17:56:46 GMT+2 2008
Well, I made some changes and put "svn.lua" in
the right place (revision 209/210).
I could not test the changes, because there was
not a "Test" directory, as there is in the Versium
repository. I just did "luac svn.lua" to make sure
the file was compiling.
Maybe now is a good time to update the Versium
repository and make a "rock" of Versium (I could
not find one).
Sergio
----- Mensagem original ----
De: Yuri Takhteyev <yuri at sims.berkeley.edu>
Para: Sérgio Medeiros <tampo_8 at yahoo.com>
Enviadas: Sábado, 23 de Fevereiro de 2008 16:51:38
Assunto: Re: [Sputnik-list] Permissions
oh,
I
see.
sorry
for
not
mentioning
this.
the
good
news
is
that
the
svn.lua
is
unchanged.
-
yuri
On
Sat,
Feb
23,
2008
at
10:48
AM,
Sérgio
Medeiros
<tampo_8 at yahoo.com>
wrote:
>
Hum...
>
>
now
I
see
the
point!
I
was
looking
for
things
in
the
Versium
>
repository,
but
the
most
recent
things
are
in
the
Sputnik
>
repository
:-)
>
>
So,
I
will
take
a
look
on
this
now
and
see
what
need
to
be
>
done.
>
>
Sergio
>
>
-----
Mensagem
original
----
>
De:
Yuri
Takhteyev
<yuri at sims.berkeley.edu>
>
Para:
Sérgio
Medeiros
<tampo_8 at yahoo.com>
>
Cc:
Sputnik
<sputnik-list at lists.luaforge.net>
>
Enviadas:
Terça-feira,
19
de
Fevereiro
de
2008
5:41:27
>
Assunto:
Re:
[Sputnik-list]
Permissions
>
>
>
>
>
>
I
>
would
>
like
>
to
>
learn
>
how
>
to
>
use
>
the
>
permissions
>
system
>
of
>
Sputnik.
>
>
>
Following
>
the
>
link
>
http://sputnik.freewisdom.org/en/Permissions
>
>
>
I
>
could
>
only
>
see
>
a
>
blank
>
page.
>
>
The
>
permissions
>
language
>
basically
>
has
>
two
>
commands
>
"allow"
>
and
>
"deny"
>
>
You
>
allow
>
or
>
deny
>
certain
>
users
>
or
>
"all"
>
certain
>
classes
>
of
>
actions.
>
For
>
example,
>
@Lua_Config
>
specifies:
>
>
permissions=
>
[=[
>
>
>
>
deny(all,
>
"save")
>
>
>
>
allow("Admin",
>
"save")
>
]=]
>
>
I.e.,
>
first
>
prohibit
>
all
>
to
>
save,
>
then
>
make
>
an
>
exception
>
for
>
Admin.
>
>
Those
>
are
>
inherited
>
through
>
concatination.
>
So,
>
if
>
a
>
node
>
inherits
>
from
>
@Lua_Config
>
and
>
sets
>
permissions
>
to
>
allow("Sergio",
>
"save")
>
then
>
only
>
"Admin"
>
and
>
"Sergio"
>
will
>
be
>
allowed
>
to
>
save.
>
>
"save"
>
is
>
the
>
only
>
class
>
of
>
actions
>
that
>
is
>
supported
>
at
>
the
>
moment.
>
See
>
actions.post
>
in
>
sputnik/actions/wiki.lua
>
http://code.google.com/p/sputnik-wiki/source/browse/trunk/rocks/sputnik/lua/sputnik/actions/wiki.lua
>
>
>
>
At
>
the
>
moment,
>
if
>
you
>
want
>
to
>
make
>
some
>
pages
>
invisible,
>
you
>
would
>
need
>
to
>
change
>
wiki.lua
>
to
>
check
>
for
>
whether
>
the
>
user
>
is
>
allowed
>
to
>
"view".
>
Note
>
that
>
presumably
>
not
>
being
>
allowed
>
to
>
view
>
would
>
mean
>
also
>
not
>
being
>
allowed
>
to
>
see
>
history,
>
diffs,
>
etc.
>
Which
>
is
>
why
>
I
>
am
>
talking
>
about
>
"classes
>
of
>
actions"
>
-
>
you
>
don't
>
want
>
to
>
prohibit
>
stuff
>
on
>
per-action
>
basis.
>
(Or
>
maybe
>
you
>
do.)
>
>
>
If
>
you
>
send
>
me
>
a
>
diff
>
that
>
adds
>
handing
>
for
>
"view"
>
I
>
will
>
be
>
most
>
delighted.
>
:)
>
>
>
>
Also,
>
now
>
that
>
we've
>
got
>
you
>
on
>
the
>
spot:
>
can
>
I
>
somehow
>
bribe
>
you
>
into
>
updating
>
the
>
versium.storage.svn
>
(http://code.google.com/p/versium/source/browse/trunk/versium/storage/svn.lua)
>
and
>
checking
>
it
>
in
>
under
>
rocks/versium-svn/lua/versium/storage/svn.lua?
>
>
>
Did
>
I
>
mention
>
before
>
on
>
this
>
list
>
that
>
I
>
think
>
Natal
>
is
>
most
>
certainly
>
one
>
of
>
Brazil's
>
two
>
most
>
beautiful
>
cities?
>
(See
>
pictures
>
if
>
you
>
don't
>
believe
>
http://www.freewisdom.org/en/all/entries/2007/10/08/natal/
>
)
>
>
-
>
yuri
>
>
>
>
>
>
>
>
Abra
sua
conta
no
Yahoo!
Mail,
o
único
sem
limite
de
espaço
para
armazenamento!
>
http://br.mail.yahoo.com/
>
--
Yuri
Takhteyev
Ph.D.
Candidate,
UC
Berkeley
School
of
Information
http://takhteyev.org/,
http://www.freewisdom.org/
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
More information about the Sputnik-list
mailing list