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
Active Member
Posts: 2
Joined: 29. January 2016 16:08
phpBB.de User: marian0810
phpBB.com User: marian0810
Location: The Netherlands

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

Post by marian0810 » 29. January 2016 19:12

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

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

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

Post by Tmod » 29. January 2016 20:17

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
Portal Professional
Portal Professional
Posts: 1496
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

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

Post by Kirk » 29. January 2016 20:22

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

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

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

Post by Tmod » 29. January 2016 21:24

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
Dev
Posts: 2487
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München

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

Post by Marc » 13. February 2016 10:56

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
Active Member
Posts: 5
Joined: 26. June 2016 17:05
phpBB.com User: Austeyr
Location: Australia

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

Post by Austeyr » 26. June 2016 17:51

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

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