Page 2 of 2

Re: No Permissions to view portal in ACP after update to 3.

Posted: 29. January 2016 18:12
by marian0810
A refresh solved the problem, thanks :D

Re: No Permissions to view portal in ACP after update to 3.

Posted: 29. January 2016 19:17
by Tmod
Kirk wrote:Thanks for the solution
You can insert it so:

Code: Select all

    static public function getSubscribedEvents()
    {
        return array(
            'core.user_setup'                        => 'load_portal_language',
            'core.viewonline_overwrite_location'    => 'viewonline_page',
            'core.page_header'                        => 'add_portal_link',
            'core.permissions'                        => 'permission',
        );
    }

    /**
    * Load permission event
    */
    public function permission($event)
    {
        $permissions = $event['permissions'];
        $permissions += array(
            'u_view_portal'    => array(
            'lang'        => 'ACL_U_VIEW_PORTAL',
            'cat'        => 'misc'
        ),
            'a_manage_portal' => array(
                'lang'        =>'ACL_A_MANAGE_PORTAL', 
                'cat'        => 'misc'
            ),
    );
        $event['permissions'] = $permissions;
    } 
Kirk,

Thanks for adding the cleaner coding, As you can tell I am not a coder so my apologies on the dirty code but you can't argue with success and it did fix it.

Tmod

Re: No Permissions to view portal in ACP after update to 3.

Posted: 29. January 2016 19:22
by Kirk
Whether it's a bug in phpBB or at the portal I can not answer.

Re: No Permissions to view portal in ACP after update to 3.

Posted: 29. January 2016 20:24
by Tmod
Yeah I posted over on the phpbb board and they gave me the boot and told me to contact the extension author, Strange since it did not have any issues until the 3.1.7 update.

Re: No Permissions to view portal in ACP after update to 3.

Posted: 13. February 2016 09:56
by Marc
This was already solved in the current development version a while back and will make its way into the next version of Board3 Portal:
https://github.com/board3/Board3-Portal/pull/650

Re: No Permissions to view portal in ACP after update to 3.

Posted: 26. June 2016 17:51
by Austeyr
This work around really helped guys cheers. Thought i was going nuts when i got on a test account and saw portal had disappeared.