On Wed, Sep 14, 2011 at 12:52 PM, Stephan Beal <[email protected]>wrote:
> Hi, all,
>
> i'm wondering if anyone would be against me making the following change to
> the 'g' object:
>
> Extend its structure to include:
>
> struct FossilPermissions {
> char setup;
> char admin;
> ... repeat for all current g.okXXX bits ...
> } perm;
>
I think this is a great idea.
>
> Remove all of the g.okXXX members, replacing their uses with g.perm.XXX.
>
> One advantage (though very minor) would be future-proofing code
> like login_as_user() against the addition of future permissions (which must
> currently be explicitly set there, whereas the above replaces all that with
> a simple memset()).
>
> ???
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
--
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users