PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Middleware
<?php namespace WilokeListingTools\Middleware; use WilokeListingTools\Framework\Routing\InterfaceMiddleware; class DesignListingRoles implements InterfaceMiddleware { public $msg; public function handle(array $aOptions) { $this->msg = esc_html__('You do not permission to access this page', 'wiloke-listing-tools'); if (!is_user_logged_in()) { return false; } if (!isset($aOptions['postID']) || empty($aOptions['postID'])) { return false; } if (!current_user_can('administrator') && get_post_field('post_author', $aOptions['postID']) != get_current_user_id()) { return false; } return true; } }
[+]
..
[-] IAgreeToPrivacyPolicy.php
[edit]
[-] DesignListingRoles.php
[edit]
[-] BeforeSubmitMessage.php
[edit]
[-] IsReviewExists.php
[edit]
[-] IsAccountConfirmed.php
[edit]
[-] CanSubmissionListing.php
[edit]
[-] IsThemeOptionSupport.php
[edit]
[-] IsListingBeingReviewed.php
[edit]
[-] CanRegister.php
[edit]
[-] VerifyPaymentID.php
[edit]
[-] IsUserLoggedIn.php
[edit]
[-] IsSupportedPostTypeAddListing.php
[edit]
[-] IsUserBeBanned.php
[edit]
[-] ValidateGoogleReCaptcha.php
[edit]
[-] IsClaimAvailable.php
[edit]
[-] IsMyPaymentSession.php
[edit]
[-] IsExceededFreePlan.php
[edit]
[-] VerifyReview.php
[edit]
[-] AddListingValidation.php
[edit]
[-] IsAdministrator.php
[edit]
[-] IAgreeToTerms.php
[edit]
[-] IsGatewaySupported.php
[edit]
[-] IsLockedAddListing.php
[edit]
[-] IsPlanExists.php
[edit]
[-] IsOwnerOfPost.php
[edit]
[-] IsExceededMaximumListingInRecurringPlan.php
[edit]
[-] IsSetupThankyouCancelUrl.php
[edit]
[-] IsWilokeShortcodeActivated.php
[edit]
[-] IsTemporaryHiddenPost.php
[edit]
[-] IsReviewEnabled.php
[edit]
[-] IsPublishedPost.php
[edit]
[-] IsPassedPostAuthor.php
[edit]
[-] IsCurrentPlanAvailable.php
[edit]
[-] IsPublishingListing.php
[edit]
[-] IsPostType.php
[edit]
[-] VerifyDirectBankTransfer.php
[edit]
[-] VerifyNonce.php
[edit]
[-] ValidationBeforeSetUserPlan.php
[edit]
[-] IsListingPostType.php
[edit]
[-] AddressRequired.php
[edit]
[-] IsPostAuthor.php
[edit]
[-] IsAllowEditingPublishedListing.php
[edit]