Allow user(role) to only update their items

It would be nice if there’s an option to only allow users(role) to update their content/items.

So that an author can only update their post and e.g. an editor can update all the authors posts.