Source of file OrderHistoryPageController.php
Size: 0,876 Bytes - Last Modified: 2021-12-24T06:45:37+00:00
/var/www/docs.ssmods.com/process/src/src/Controller/OrderHistoryPageController.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?php namespace Dynamic\FoxyStripe\Page; use SilverStripe\Security\Security; /** * Class OrderHistoryPageController * @package Dynamic\FoxyStripe\Page * * @mixin OrderHistoryPage */ class OrderHistoryPageController extends \PageController { /** * @var array */ private static $allowed_actions = array( 'index', ); /** * @return bool|\SilverStripe\Control\HTTPResponse */ public function checkMember() { if (Security::getCurrentUser()) { return true; } else { return Security::permissionFailure($this, _t( 'AccountPage.CANNOTCONFIRMLOGGEDIN', 'Please login to view this page.' )); } } /** * @return array */ public function Index() { $this->checkMember(); return array(); } } |