[Vtigercrm-developers] caching user privileges

Adam Heinz amh at metricwise.net
Mon Mar 19 07:21:28 PDT 2012


On Mon, Mar 19, 2012 at 10:18 AM, Adam Heinz <amh at metricwise.net> wrote:
> Not yet.  For a refactoring like this, where the previous interface of
> including files is being thrown away, it's next to impossible to
> create unit tests.  That said, would you rather I sync back to
> immediately after ticket 7342 and create unit tests there (making the
> interface of UserPrivileges more permanent), or would you rather have
> new unit tests of the final product (where I've folded all that logic
> up into the Users and Roles classes)?

Actually, I think the best thing might be to create vtlib classes
against UserPermissions and write the unit tests for those vtlib
classes.  The main problem with that being that the separation of user
and role permissions is not well-defined until ticket 7379.




More information about the vtigercrm-developers mailing list