[sso-admin] Fix issue when editing users
Co-written with: @elena61mejoras_instalacion
parent
cb219ac87f
commit
0eb8f5f549
|
@ -1618,7 +1618,7 @@ class Admin:
|
||||||
internaluser : DDUser = [u for u in self.internal["users"] if u["id"] == user_id][0]
|
internaluser : DDUser = [u for u in self.internal["users"] if u["id"] == user_id][0]
|
||||||
cohorts = self.moodle.get_cohorts()
|
cohorts = self.moodle.get_cohorts()
|
||||||
for group in mdelete:
|
for group in mdelete:
|
||||||
cohort = [c for c in cohorts if c["name"] == group[0]][0]
|
cohort = [c for c in cohorts if c["name"] == group][0]
|
||||||
try:
|
try:
|
||||||
self.moodle.delete_user_in_cohort(
|
self.moodle.delete_user_in_cohort(
|
||||||
internaluser["moodle_id"], cohort["id"]
|
internaluser["moodle_id"], cohort["id"]
|
||||||
|
@ -1908,7 +1908,7 @@ class Admin:
|
||||||
" NEXTCLOUD USERS: Creating nextcloud user: "
|
" NEXTCLOUD USERS: Creating nextcloud user: "
|
||||||
+ u["username"]
|
+ u["username"]
|
||||||
+ " in groups "
|
+ " in groups "
|
||||||
+ str(list)
|
+ str(u.get("groups", []))
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
# Quota is in MB
|
# Quota is in MB
|
||||||
|
|
Loading…
Reference in New Issue