Permissions: Change check_profile_permission() to check_user_permission()
Permissions: Minor style fixes