Update permission_required decorator to handle new has_permissions #2048

Update permission_required decorator to handle all and any permission
for a nereid user.

Review ID: