- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user