Remove unnecessary conditions from user's permission checking

Small code cleaning. If obj is None, it's None, there's no need to check it.