Fixed a typo in the Permissions datastruct.  Changed self.user -> self.uid and self.site -> self.sid