Forum

[SOLVED] Error when...
 
Notifications
Retirer tout

[SOLVED] Error when login as Team Member

4 Posts
3 Utilisateurs
0 Reactions
2,240 Vu
(@jmu)
Posts: 2
New Member
Début du sujet
 
[#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


 
Posté : 5 Jan PM 15:011
Damian
(@damian-sd)
Posts: 119
Membre Admin Registered
 

Hello,

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


 
Posté : 6 Jan PM 16:011
(@babynus)
Posts: 14952
Membre 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


 
Posté : 7 Jan PM 12:011
(@jmu)
Posts: 2
New Member
Début du sujet
 

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

Thank you


 
Posté : 8 Jan PM 19:011
Share:
Retour en haut