Update has_permission method for any permission #2048

Updated has_permission method to check any permission with all
permissions.

Review ID: 287001