flask-principal icon indicating copy to clipboard operation
flask-principal copied to clipboard

Make Permission.reverse() keep object identity

Open deeplook opened this issue 9 years ago • 1 comments

This will swap needs and excludes while returning the same changed Permission object without changed object identity.

deeplook avatar Dec 02 '16 15:12 deeplook

Post-PR thought: Why not just swap things like this: self.needs, self.excludes = self.excludes, self.needs?

deeplook avatar Dec 02 '16 15:12 deeplook