Seem to have gotten a base example of how to use the permissions API.
Also fixed Dries' spelling error.