Permissions to Sell - IMPLEMENTED IN V3.4

Details of modifications which users can incorporate within Enuuk Auction Platform free of charge
Post Reply
RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Permissions to Sell - IMPLEMENTED IN V3.4

Post by RWAP » Thu Apr 19, 2012 6:53 am

Currently, if you are not logged into Enuuk, or have not confirmed your email, when you try to list an item for sale, you are informed:

'You do not have permission to sell - please contact the administrator' (or similar).

In fact, you should be told that you need to log in to perform this operation in the first instance.
The above message is better only then displayed if you are not a seller.

A quick and simple mod to do.

In class\Action\Offer.php

Find:

Code: Select all

    public function add()
    {
        if(!$this->isLoggedUserASeller()){
            $this->alertLoggedUserIsNotASeller();
            return false;
        }
Change this to:

Code: Select all

    public function add()
    {
        if(!$this->verifyLoggedUser()){
            return false;
        }
        if(!$this->isLoggedUserASeller()){
            $this->alertLoggedUserIsNotASeller();
            return false;
        }

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest