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.

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

Postby ShocK » 13. January 2016 13:10

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 15:37, edited 1 time in total.
ShocK
Active Member
Active Member
 
Posts: 9
Joined: 17. January 2012 23:47

Re: No Permissions to view portal in ACP

Postby ShocK » 15. January 2016 17:03

Anyone else noticed this permission problem with 3.1.7-pl1 ?
ShocK
Active Member
Active Member
 
Posts: 9
Joined: 17. January 2012 23:47

Re: No Permissions to view portal in ACP

Postby talonos » 15. January 2016 17:58

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 a world of warcraft website? check the sites out below for board3 compatable mods
Talonos: Pretereo Guild on stormrage EU
User avatar
talonos
Portal Specialist
Portal Specialist
 
Posts: 204
Joined: 7. June 2009 15:12
phpBB.com User: talonos

Re: No Permissions to view portal in ACP

Postby Roma » 16. January 2016 14:36

I have the same problem. No access rights settings.
Roma
Active Member
Active Member
 
Posts: 3
Joined: 16. January 2016 14:31
phpBB.com User: romaamor

Re: No Permissions to view portal in ACP

Postby Roma » 16. January 2016 14:38

Me too - No Permissions to view portal in ACP
Roma
Active Member
Active Member
 
Posts: 3
Joined: 16. January 2016 14:31
phpBB.com User: romaamor

Re: No Permissions to view portal in ACP

Postby MyLady » 17. January 2016 00:30

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
-----
Deutsche Übersetzungen, ggf. auch auf Anfrage
MODs: Reputation System, Safe Gamertag 2.3.4, phpRivals phpBB-Arcade Mod/Extension (2015) und andere. Arcade Adminwiki.
User avatar
MyLady
Sponsor
Sponsor
 
Posts: 103
Joined: 30. November 2009 17:11
phpBB.de User: MyLady
phpBB.com User: Scanialady

Re: No Permissions to view portal in ACP

Postby Tmod » 19. January 2016 06:32

Any updates as to what exactly caused this issue?

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

Re: No Permissions to view portal in ACP

Postby Tmod » 19. January 2016 07:05

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
Tmod
Active Member
Active Member
 
Posts: 8
Joined: 19. January 2016 06:09

Re: No Permissions to view portal in ACP

Postby Roma » 19. January 2016 20:58

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 ;)
Roma
Active Member
Active Member
 
Posts: 3
Joined: 16. January 2016 14:31
phpBB.com User: romaamor

Re: No Permissions to view portal in ACP

Postby ShocK » 20. January 2016 15:36

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.
ShocK
Active Member
Active Member
 
Posts: 9
Joined: 17. January 2012 23:47

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

Postby Tmod » 24. January 2016 02:07

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
Active Member
 
Posts: 8
Joined: 19. January 2016 06:09

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

Postby Tmod » 24. January 2016 08:48

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
Active Member
 
Posts: 8
Joined: 19. January 2016 06:09

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

Postby Tmod » 29. January 2016 08:58

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.
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.

Postby marian0810 » 29. January 2016 17:32

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

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

Postby Kirk » 29. January 2016 18:28

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
You do not have the required permissions to view the files attached to this post.
Gruß Udo
User avatar
Kirk
Portal Professional
Portal Professional
 
Posts: 1317
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Next

Return to Board3 Portal 2.1.x - English Support

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests