Page 1 of 2

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

Posted: 13. January 2016 12:10
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.

Re: No Permissions to view portal in ACP

Posted: 15. January 2016 16:03
by ShocK
Anyone else noticed this permission problem with 3.1.7-pl1 ?

Re: No Permissions to view portal in ACP

Posted: 15. January 2016 16:58
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.

Re: No Permissions to view portal in ACP

Posted: 16. January 2016 13:36
by Roma
I have the same problem. No access rights settings.

Re: No Permissions to view portal in ACP

Posted: 16. January 2016 13:38
by Roma
Me too - No Permissions to view portal in ACP

Re: No Permissions to view portal in ACP

Posted: 16. January 2016 23:30
by MyLady
May be it is caused by this bug https://tracker.phpbb.com/browse/PHPBB3-14407

Re: No Permissions to view portal in ACP

Posted: 19. January 2016 05:32
by Tmod
Any updates as to what exactly caused this issue?

Terry

Re: No Permissions to view portal in ACP

Posted: 19. January 2016 06:05
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

Re: No Permissions to view portal in ACP

Posted: 19. January 2016 19:58
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 ;)

Re: No Permissions to view portal in ACP

Posted: 20. January 2016 14:36
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.

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

Posted: 24. January 2016 01:07
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

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

Posted: 24. January 2016 07:48
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

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

Posted: 29. January 2016 07:58
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.

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

Posted: 29. January 2016 16:32
by marian0810
That works for me, however the portal settings are still not showing up for me on the Extensions tab in my ACP :?

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

Posted: 29. January 2016 17:28
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