Best practice forum (Archived)

تمت إزالة منتدى المناقشة هذا

 
لقد تمت إزالة مشاركة المنتدى هذه
Thursday, 7 November 2013, 2:40 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
Yuliya Bozhko
Re: Unable to edit users idnumber after upgrade
بواسطة Thursday, 7 November 2013, 11:43 AM - Yuliya Bozhko
 

Hi Darren,

There is indeed a new capability associated wit idnumbers 'totara/core:updateuseridnumber'. Make sure your users have it to be able to edit idumbers.

Yuliya

Yuliya Bozhko
Re: Unable to edit users idnumber after upgrade
بواسطة Thursday, 7 November 2013, 1:07 PM - Yuliya Bozhko
 

Ah, sorry, Darren! I didn't realised which version you were talking about. This capability was actully added in Totara 2.5.

In 2.2.10 users could update their own idnumber, however later we added support to sync users in Totara Sync based on user idnumber. So, in 2.2.23, if users have "Totara Sync" checkbox field checked in their profile, only administrator can update their idnumbers. If you uncheck that field, users should be able to update idnumbers again.

Yuliya

لقد تمت إزالة مشاركة المنتدى هذه
Tuesday, 12 November 2013, 8:26 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
Yuliya Bozhko
Re: Unable to edit users idnumber after upgrade
بواسطة Tuesday, 12 November 2013, 11:45 AM - Yuliya Bozhko
 

Hi Darren,

Sorry, I was probably not quite clear. If user profiles have sync checkbox checked, then only site administrators (not sure what you mean by superusers here...) can update users' idnumbers. This was done to prevent users to accidentally updating their own idnumber which could lead to the problems if their details are updated through sync.

Unfortunately, in Totara 2.2 there is no option to avoid this behaviour other than customising the code (which I would not recommend).

Yuliya

لقد تمت إزالة مشاركة المنتدى هذه
Wednesday, 13 November 2013, 1:49 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
Yuliya Bozhko
Re: Unable to edit users idnumber after upgrade
بواسطة Wednesday, 13 November 2013, 12:14 PM - Yuliya Bozhko
 

Hi Darren,

To change this behaviour, look for useredit_shared_definition() function in user/editlib.php

There you will be looking for lines:

$mform->setType('idnumber', PARAM_NOTAGS);
if (!is_siteadmin() && $user->totarasync) {
     $mform->freeze('idnumber');
}

You will need to remove entire if-statement so that no check for admin and totarasync is done any more.

Hope this helps.

Yuliya

لقد تمت إزالة مشاركة المنتدى هذه
Thursday, 14 November 2013, 1:19 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها
Richard Wyles
Re: Unable to edit users idnumber after upgrade
بواسطة Wednesday, 13 November 2013, 1:00 PM - Richard Wyles
 

Darren,
I've been in discussion with Andrew Fraser and normal service should resume shortly. (i.e. v2.5 etc.)

kind regards
Richard

لقد تمت إزالة مشاركة المنتدى هذه
Thursday, 14 November 2013, 1:20 AM
تمت إزالة محتوى هذه المشاركة في المنتدى ولم يعد من الممكن الوصول إليها