Cleaner implementation of visible_to_user?
This splits the ability check into two parts: the capability name and the object of the check, simplifying matters considerably and reducing repetition.
Showing
Please register or sign in to comment