No Permissions to view portal in ACP after update to 3.1.7-

Current Version: 2.1.0
Released: 2015-10-26
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
User avatar

marian0810
Active Member
Posts: 2
Joined: 29. January 2016 15:08
phpBB.de User: marian0810
phpBB.com User: marian0810
Location: The Netherlands
Contact:

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

Post by marian0810 »

A refresh solved the problem, thanks :D
“We’re all stories, in the end. Just make it a good one, eh?”

Tmod
Active Member
Posts: 8
Joined: 19. January 2016 05:09

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

Post 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
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

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

Post by Kirk »

Whether it's a bug in phpBB or at the portal I can not answer.
Gruß Udo

Tmod
Active Member
Posts: 8
Joined: 19. January 2016 05:09

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

Post 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.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

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

Post 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
User avatar

Austeyr
Active Member
Posts: 5
Joined: 26. June 2016 17:05
phpBB.com User: Austeyr
Location: Australia
Contact:

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

Post 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.
:arrow: Oxaus Notice: Consider checking out & Registering at Oxaus.com Community forum.

My Favourite Quote
The only thing necessary for the triumph of evil is for good men to do nothing.~Edmund Burke

Image
Locked

Return to “Board3 Portal 2.1.x - English Support”