Access denied for public adding of event

I want to make "adding events" public on one of my sites - mostly to make it easier for a partner to do it.  I have set the membership levels to allow for public adding of events, but i am getting an "access denied" error message".   Here is what happens on my 7.0.9 but it also happens on 7.1  - any idea what I am doing wrong?  Probably something dumb - it usually is

http://world-startups.com//m/events/browse/my&bx_events_filter=add_event 

Quote · 6 May 2014

Actually events can't be without author, even if it is possible then you would have tons of spam on your site.

So there is hardcoded checking for logged in member for adding an event in modules/boonex/events/classes/BxEventsModule.php file:

    function isAllowedAdd ($isPerformAction = false)
    {
        if ($this->isAdmin())
            return true;
        //if (!$GLOBALS['logged']['member'])
        //    return false;
        $this->_defineActions();
        $aCheck = checkAction($this->_iProfileId, BX_EVENTS_ADD, $isPerformAction);
        return $aCheck[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED;
    }

 you could comment out the lines in above code, but can't guarantee that it will work, it maybe some unpredictable errors somewhere in the code becuase it is assumed that user will be logged in.

Rules → http://www.boonex.com/terms
Quote · 12 May 2014

 

Actually events can't be without author, even if it is possible then you would have tons of spam on your site.

So there is hardcoded checking for logged in member for adding an event in modules/boonex/events/classes/BxEventsModule.php file:

    function isAllowedAdd ($isPerformAction = false)
    {
        if ($this->isAdmin())
            return true;
        //if (!$GLOBALS['logged']['member'])
        //    return false;
        $this->_defineActions();
        $aCheck = checkAction($this->_iProfileId, BX_EVENTS_ADD, $isPerformAction);
        return $aCheck[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED;
    }

 you could comment out the lines in above code, but can't guarantee that it will work, it maybe some unpredictable errors somewhere in the code becuase it is assumed that user will be logged in.

In that case, then instead of commenting out the code, perhaps create a special user account.  Then check to see if guest when creating event entry and hard code it to set the guest user to the special user account.  That will then get around any other issues in the code where the account can not be guest.

I guess you could first try the easier; comment out the code as AlexT outlines and if that causes issues, then try my approach.

Geeks, making the world a better place
Quote · 12 May 2014

Keep in mind - you lose all ability to track what persons added the event if they are not logged in. So, if a person adds an event as a guest and then later decides to join - the "My Events" will be blank until they add a new event while logged in.

caredesign.net
Quote · 12 May 2014

 

I want to make "adding events" public on one of my sites - mostly to make it easier for a partner to do it.

Actually, after going back and reading this, I think a solution tailored to the problem would be a better approach than opening up events to guest publishing.

Geeks, making the world a better place
Quote · 12 May 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.