I'm building Visualfroce for updating Custom Metadata.
I tried checking
MetadataType__mdt.getSObjectType().getDescribe().isUpdatable(), but it returns false even for System Admin.
I know that I can query Profile and all associated Permission Sets to check if User has
CustomizeApplication System Permission, but maybe there is a better way.
Please share your insights if you know of any other way to check it in Apex.
I've already implemented functionality for updating Custom Metadata using Metadata API.
This error is thrown by Visualforce if the page has and User doesn't have permission necessary to update Custom Metadata.