Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Error when...
 
Notifications
Clear all

[SOLVED] Error when login as Team Member

4 Posts
3 Users
0 Reactions
2,267 Views
(@jmu)
Posts: 2
New Member
Topic starter
 
[#6431]

Hello,
When login for the first time as Team Member the following error occurs
2020-01-03 12:59:36.254 ===== TRACE ===== NEW CONNECTED USER 'SN2-IAI'
2020-01-03 13:00:01.317 ** ERROR ** [V8.3.1] ERROR **
2020-01-03 13:00:01.350
** ERROR ** [V8.3.1] on file 'C:laragonwwwprojeqtormodelUserMain.php' at line (435)
2020-01-03 13:00:01.382
** ERROR ** [V8.3.1] cause = Undefined index:
2020-01-03 13:00:17.283
** ERROR ** [V8.3.1] ERROR **
2020-01-03 13:00:17.289 ** ERROR ** [V8.3.1] on file 'C:laragonwwwprojeqtormodelUserMain.php' at line (435)
2020-01-03 13:00:17.298 ** ERROR ** [V8.3.1] cause = Undefined index:

There is no issue when login at the first time as Project Manager.

Regards
JMU


 
Posted : 05 Jan 2020 15H23
Damian
(@damian-sd)
Posts: 119
Active Member Admin Registered
 

Hello,

we can't reproduce your issue.
Can you send screenshot of this user definition and user profil definition.


 
Posted : 06 Jan 2020 16H56
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

We cannot reproduce this issue.
It looks like some default configuration is not correctly done.
If it was a first install, please check if errors are logged in projeqtor log file during install process.

What you can do as a workaround :
=> open screen "acces rights" > "access to forms" and save (without any change)
=> open screen "acces rights" > "access to data (project dependant)" and save (without any change)
This may fix your issue.

It it still does not work, try and change code in model/UserMain.php, lines 434 and after from

        if ($arObj->idAccessProfile  $accessScopeList[$accessProfile->idAccessScopeRead],
                           'create' => $accessScopeList[$accessProfile->idAccessScopeCreate],
                             'update' => $accessScopeList[$accessProfile->idAccessScopeUpdate],
                             'delete' => $accessScopeList[$accessProfile->idAccessScopeDelete],
                             'report' =>  $accessScopeList[$accessProfile->idAccessScopeRead], );
          if ($accessScopeList[$accessProfile->idAccessScopeRead]=='ALL') {
            if (!$obj) $this->_accessControlVisibility='ALL';
          }
        } else {    

to

        if ($arObj->idAccessProfileid) {
            $scopeArray=array( 'read' =>  $accessScopeList[$accessProfile->idAccessScopeRead],
                               'create' => $accessScopeList[$accessProfile->idAccessScopeCreate],
                               'update' => $accessScopeList[$accessProfile->idAccessScopeUpdate],
                               'delete' => $accessScopeList[$accessProfile->idAccessScopeDelete],
                               'report' =>  $accessScopeList[$accessProfile->idAccessScopeRead], );
            if ($accessScopeList[$accessProfile->idAccessScopeRead]=='ALL') {
              if (!$obj) $this->_accessControlVisibility='ALL';
            }
          }
        } else {    

This is a fix we'll add in next patch


 
Posted : 07 Jan 2020 12H35
(@jmu)
Posts: 2
New Member
Topic starter
 

Saving access rights forms did not solve the issue.
Changing code solves it.

Thank you


 
Posted : 08 Jan 2020 19H22
Share:

Scroll to Top