- payment : first date error corrected

- payment : added httpErrorException
- payment : error handling wip
- profil page restriction gives access to admin and editor
This commit is contained in:
asus
2024-03-07 10:26:11 +01:00
parent 2fb1ec35aa
commit b8fbd84d53
7 changed files with 59 additions and 18 deletions

View File

@@ -3,7 +3,15 @@
function restrict_author_page_CIPF() {
if (!is_author())
$can_access = false;
if (is_author())
$can_access = true;
else if (current_user_can('administrator'))
$can_access = true;
else if (current_user_can('editor'))
$can_access = true;
if ($can_access === false)
return;
global $post;