Use the new permission check function in calendardisplay.php.
Fix for error report when attempting to use unset variables as array.
Switch to new permission check in readelements.php.
Use new permission check in elementdisplay.php.
Use new permissions check in formdisplay.php.
Cache permission check result.
Use new permission checks in entriesdisplay.php and formdisplaypages.php.