There is no out of the box implementation available in jira to do this however a simple workaround can be that you create a copy of your workflow for issue type subtask and in the transitions leading to Closed status you define who would have the permission to do so.
You leave out this condition for the workflow which you apply to other issue types;
so that way anyone can go in and close any other issue type except sub-task.
Let me know if you want me to clarify my point.
Here's the link explaining you how to configure workflow schemes
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs