flask-principal
flask-principal copied to clipboard
Make Permission.reverse() keep object identity
This will swap needs and excludes while returning the same changed Permission object without changed object identity.
Post-PR thought: Why not just swap things like this: self.needs, self.excludes = self.excludes, self.needs?