monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: beginner's question: write permission prob


From: Joe Brenner
Subject: [Monotone-devel] Re: beginner's question: write permission prob
Date: Fri, 03 Aug 2007 13:39:07 -0700

Timothy Brownawell <address@hidden> wrote:
> Joe Brenner wrote:

> > I'm trying to get a simple monotone setup working over my internal
> > network, and I'm seeing a permissions problem: I can get read access,
> > but not write access.  I've run out of ideas for things to check, and
> > I'm looking for suggestions.
>
> > On the server:
>
> >   function get_netsync_read_permitted (collection, identity)
> >   if (identity == "address@hidden") then return true end
> >     return false
> >   end
> >
> >   function get_netsync_write_permitted (collection, identity)
> >     if (identity == "address@hidden") then return true end
> >     return false
> >   end
>
> Since 0.20, write permission is all or nothing, and this hook only takes
> one argument, "identity". Since you have "identity" being the second
> argument, it will always be nil. (Also since 0.20, the "collection"
> argument to get_netsync_read_permitted has become "branch", and it is
> called for each branch that would be sent to the client.)
>
> The read-permissions and write-permissions files are checked by the
> default versions of these hooks. I'd recommend that you delete your
> versions of these hooks and just use those files, unless you need
> something fancy.

Thanks, that's exactly what I needed to do.  This must be some left-over
cruft from my experiments with previous versions of Monotone (perhaps
using out-of-date documentation).

(I was wondering about this stuff, actually... it did seem redundant
with the *-permissions files.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]