Timothy Brownawell <[EMAIL PROTECTED]> 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 == "[EMAIL PROTECTED]") then return true end > > return false > > end > > > > function get_netsync_write_permitted (collection, identity) > > if (identity == "[EMAIL PROTECTED]") 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.) _______________________________________________ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel