Btw, David, when loading your enhancements my test
StructureTests>>testRoles breaks, what is something that should
usually not happen. Another problem is that loading your code makes
SmallWiki suddenly behave very restrictive with permission, e.g. it is
not possible to view or edit any page without logging-in.
hello lukas,
thanks a lot for reviewing the code! this really helps a lot and I'm
happy for every feedback.
right now I'm dealing with updating the roles of a user. with the curent
admin implementation, all the roles (administrator doesn't) must be
defined and attached somewhere in the tree structure.
short description: when updating the roles of a user and we are on root,
the permissions of the user roles are removed and updated with the
permissions of the roles attached in the structures. (I had unwandet
side-effects: creatring a role A and attach it to a structure. creating
user 01, giving him role A. user 01 logs in, plays around: roles are
updated correctly. when role A is deleted by admin, then the user 01
still has all the permissions of role A. that's why I decided to clean
up permissions when starting updating at root structure).
cheers and have a great week,
david.