]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/class_WebMoneyRefillFormCommand.php
Filters added to refill form command
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebMoneyRefillFormCommand.php
index 31593a8393a04be60aaab3d655d96c91a81d96f1..06e2e31812705b3e2494bfe97ddfd8357c5fb967 100644 (file)
@@ -72,7 +72,14 @@ class WebMoneyRefillFormCommand extends BaseCommand implements Commandable {
         * @return      void
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
-               $this->partialStub("Please implement this method.");
+               // Add user auth filter (we don't need an update of the user here because it will be redirected)
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_auth_class'));
+
+               // Add user status filter here
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_class'));
+
+               // Is the refill page active?
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_class'));
        }
 }