Changed from PagePermissions hooks to direct has*Permissions hooks
Merge pull request #17 from apeisa/automatic-permissions

Changed from PagePermissions hooks to direct has*Permissions hooks