converted the Permissions plugin to the new patterns