Get permission state for a plugin.
This should be used by plugin authors to wrap their actual implementation.