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.

Topic author
ShocK
Active Member
Posts: 9
Joined: 17. January 2012 22:47
Contact:

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

Post by ShocK »

EDIT: Just realised it's the update to 3.1.7-pl1 that's caused the permission problem and removed the "Can view the Portal" option in permissions.

Your Portal Version: 2.1.0
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://phpbbmods.co.uk/

Description and Message
Hi
The setting "Can view the Portal" is missing for all groups and NRU and Registered users cannot see the portal. Admins, global mods, guests can see the portal.
I've installed on localhost to test and the same setting is missing there for all groups aswell

http://s19.postimg.org/jncwnodoz/pic.png

User: test
Pass: test123

I've uninstalled and reinstalled with no joy.

Thanks


Update: When a user gets removed from the NRU group and they're only in the Registered user group that's when they can't see the portal - If I leave them in the NRU then they can see the portal.

EDIT: Just realised it's the update to 3.1.7-pl1 that's caused the permission problem and removed the "Can view the Portal" option in permissions.
Last edited by ShocK on 20. January 2016 14:37, edited 1 time in total.

Topic author
ShocK
Active Member
Posts: 9
Joined: 17. January 2012 22:47
Contact:

Re: No Permissions to view portal in ACP

Post by ShocK »

Anyone else noticed this permission problem with 3.1.7-pl1 ?
User avatar

talonos
Portal Specialist
Posts: 242
Joined: 7. June 2009 15:12
phpBB.com User: talonos

Re: No Permissions to view portal in ACP

Post by talonos »

yep its done the same for me. just checked it with my local install which i havn't updated and the option is there but on the newest phpbb the option is not there.
Creating board3 website? check the sites out below for board3 compatible extensions
Talonos: Pretereo stormrage EU OFFLINE!

Roma
Active Member
Posts: 3
Joined: 16. January 2016 13:31
phpBB.com User: romaamor

Re: No Permissions to view portal in ACP

Post by Roma »

I have the same problem. No access rights settings.

Roma
Active Member
Posts: 3
Joined: 16. January 2016 13:31
phpBB.com User: romaamor

Re: No Permissions to view portal in ACP

Post by Roma »

Me too - No Permissions to view portal in ACP
User avatar

MyLady
Sponsor
Posts: 134
Joined: 30. November 2009 16:11
phpBB.de User: Scanialady
phpBB.com User: Scanialady
Contact:

Re: No Permissions to view portal in ACP

Post by MyLady »

May be it is caused by this bug https://tracker.phpbb.com/browse/PHPBB3-14407
sorry for my bad english - I'm german and google is my friend :D

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

Re: No Permissions to view portal in ACP

Post by Tmod »

Any updates as to what exactly caused this issue?

Terry

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

Re: No Permissions to view portal in ACP

Post by Tmod »

Just checked into this further and this was my solution to registered users not being able to see the portal. Admins and Guests could always see it but when a registered user logged in then it dis-appeared.

ACP > Users And Groups > Group Permissions > Registered Users > Hit submit > Role= Standard Features > Apply Permissions

Now they should be able to see the portal, Worked for me so hopefully it works for others that have this issue.

Terry

Roma
Active Member
Posts: 3
Joined: 16. January 2016 13:31
phpBB.com User: romaamor

Re: No Permissions to view portal in ACP

Post by Roma »

Tmod wrote:Just checked into this further and this was my solution to registered users not being able to see the portal. Admins and Guests could always see it but when a registered user logged in then it dis-appeared.

ACP > Users And Groups > Group Permissions > Registered Users > Hit submit > Role= Standard Features > Apply Permissions

Now they should be able to see the portal, Worked for me so hopefully it works for others that have this issue.

Terry
Thank you ;)

Topic author
ShocK
Active Member
Posts: 9
Joined: 17. January 2012 22:47
Contact:

Re: No Permissions to view portal in ACP

Post by ShocK »

Tmod wrote:Worked for me so hopefully it works for others that have this issue.
Nicely figured out :D This workaround works for me too.

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 »

Ok I installed a vanilla version of 3.1.6 and a vanilla version of 3.1.7 pl1 and installed board3 portal on both and the option in the ACP misc tab on 3.1.7 pl1 is missing compared to 3.1.6. I have installed 3.1.7 pl1 a total of three times and the same result each time.

phpBB 3.1.6
Image

phpBB 3.1.7 pl1
Image

So the issue does exist, Now the question is why?

Tmod

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 »

Ok found the file and code that was causing the issue for me. includes/acp/auth.php. When I commented out the code below the "Can view the portal" option returned in 3.1.7 pl1. Checking the same file in 3.1.6 it does not have the same code listed below.

Code: Select all

if (!$phpbb_permissions->permission_defined($permission))
				{
					continue;
				}
This was after multiple clean vanilla installs of 3.1.7 pl1 and just adding Board3 Portal so I know it was not any mod that caused this issue.

Pre comment out includes/acp/auth.php
Image

Post comment out includes/acp/auth.php
Image

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 »

Ok update time.

I was checking into this issue and here is my resolution without modifying any core phpbb files.

You will have to edit the listener.php file located at ext/board3/portal/events/listener.php

Open listener.php and find the following located near the top:

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',
		);
		
  }
Now replace that entire code with the following code:

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' => 'add_permission',
		);
		
  }
  
  /**
	* Load permission event
	*/
	public function add_permission($event)
  {
    $permissions = $event['permissions'];
    $permissions['u_view_portal'] = array('lang' => 'ACL_U_VIEW_PORTAL', 'cat' => 'misc');
    $permissions['a_manage_portal'] = array('lang' => 'ACL_A_MANAGE_PORTAL', 'cat' => 'misc');
    $event['permissions'] = $permissions;
  }
Now save and exit and upload to your site or if you edited in the ftp program you should be good.

Refresh the site and you will now be able to view the option in the ACP misc tab to either Yes/No/Never view the portal for all the groups. You will also have the ability in the admin permissions misc tab to Yes/No/Never altering the portal settings.
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 »

That works for me, however the portal settings are still not showing up for me on the Extensions tab in my ACP :?
“We’re all stories, in the end. Just make it a good one, eh?”
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 »

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;
    }
@marian0810:
Have you the permission "Can alter Portal settings"?
portal_acp_permission.jpg
Gruß Udo
Locked

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