AskalotCQA / askalot

Askalot CQA System of Next Generation
https://askalot.fiit.stuba.sk/demo
Other
26 stars 11 forks source link

Admin rights only checked on account creation #4

Closed QuCryptoX closed 7 years ago

QuCryptoX commented 7 years ago

We upgraded (on edX) the roles of several of our staff members to admin. However, askalot did not update their roles accordingly and they cannot edit posts or evaluate questions.

It be great if askalot did this automatically, but otherwise, is there any way of changing the rights of users directly on askalot?

Thanks in advance!

adrianhuna commented 7 years ago

Hello. You are right. Askalot currently only stores user role upon registering user, so the roles are not updated if you change them later in edX administration. We will update this behavior soon and deploy new version (probably) before Monday.

adrianhuna commented 7 years ago

We deployed new version containing a fix for this issue so everything should be working according to your needs.

QuCryptoX commented 7 years ago

Thanks a lot for the quick reply! Unfortunately it is not working yet for us, for instance user kdgoodenough is and admin on edX but not yet on askalot.

adrianhuna commented 7 years ago

In order for the roles to be updated, it's required to visit Askalot in unit. Could you confirm he did so?

QuCryptoX commented 7 years ago

To be honest, I am not sure what is unit, do you mean edx studio?

adrianhuna commented 7 years ago

By unit, I mean a part of your course that contains Askalot component besides some learning materials.

For your case, that would be e.g. https://courses.edx.org/courses/course-v1:CaltechDelftX+QuCryptox+3T2016/courseware/f286a8dd5fd2436caaa190a234d5a690/f90d22edc8ae4872bae4027497e6b159/

Additionally, feel free to write us at askalot@fiit.stuba.sk if you would prefer more private conversation.

KDGoodenough commented 7 years ago

Hii Adrian, I visited the unit page but I do not yet have admin rights, unfortunately.

isrba commented 7 years ago

@KDGoodenough, we just want to make sure - when you visit your course, as an admin user, you have a possibility to see the course as "Staff", "Student" or "Specific student" (this option is available right above the main course menu). Please, could you let us know which option do you use?

We suppose that you may have set it to "Student" or "Specific student" and thus you appear to Askalot as a student and not as an admin. And therefore, Askalot cannot, of course, recognize your edX role properly.

If this is not your case, we will do our best to find a solution. Thank you very much for your patience.

KDGoodenough commented 7 years ago

@isrba The option was set to student (because I'm also doing beta testing). I set it now to staff, but nothing has changed yet. I also revisited the unit page again.

isrba commented 7 years ago

@KDGoodenough, if I am right, I suppose that you have just found a bug in edX platform. You do not have to just change your role to "Staff" but also you need to logout and login again.

That is why Askalot cannot detect that you are administrator now. Please, could you try to set staff role in edX, logout and login again and visit the unit with Askalot afterwards. And, please, let us know, we will check logs and we will see what edX will send us as your role.

Thank you for your help.

KDGoodenough commented 7 years ago

Logging out and back in again seemed to do the trick :) Thank you very much!

isrba commented 7 years ago

@KDGoodenough, we can confirm that your role in Askalot has been changed.

To conclude for future reference - to reflect the change of role in edX, it is necessary to:

  1. Set user's temporary role in edX to "Staff" and not "Student" or "Specific student". Otherwise, edX naturally send a student role and thus we cannot detect the change.
  2. With role set to "Staff", it is necessary to logout and login again due to a bug (or maybe very weird feature) in edX.
  3. Visit any unit with Askalot. The role in Askalot will be reflected automatically.

@KDGoodenough, one more time thank you for solving this issue with us. As you can see, the implementation of your change request was implemented correctly from the very beginning, however, we did not realize that you can have different temporary role and moreover, we did not expect that bug in edX at all.