Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
COmanage Registry 0.7 (Harmonic Heptagon)
-
None
Description
If a CMP Admin performs an operation on a CO of which the admin is not a member, any History Records associated with the operation will not have the Admin as the ActorCoPerson. This is because UsersController::login() does not populate $cos with COs for which the Admin is not a member, which in turn means that AppController::calculateCMRoles() does not set Auth.User.co_person_id (which is often used to determine the ActorCoPerson when recording history).
It's not immediately clear what the right fix is... it's probably wrong to make CMP Admins pseudo-members of all COs. For now, the workaround is that CMP Admins should not muck around in COs when they are not also members of that CO.