ednapiranha/remo — comment on commit f9d3d43a95ab144d263d52c37ee2fe91cfb47d4a
File: remo/base/decorators.py line 30
By ednapiranha:

Alright - can you rename _def to _wraps for readability (makes it easier for any dev to understand what that means by looking at the name)?

Also don't check len(permissions) - just checking `if permissions` is sufficient

And the big long `if` statement for checking permissions - it is more readable if you break that up into smaller bits - each check is actually a private method that returns True or False and then your conditional is cleaner to read. Try to avoid doing slashes on code as much as possible.