Switch to side-by-side view
--- a/Allura/allura/lib/security.py +++ b/Allura/allura/lib/security.py @@ -31,6 +31,9 @@ 'clear cache' self.users = {} self.projects = {} + + def clear_user(self, user_id, project_id=None): + self.users.pop((user_id, project_id), None) def load_user_roles(self, user_id, *project_ids): '''Load the credentials with all user roles for a set of projects'''