keeleinstituut / tv-tolkevarav

Tõlkevärav (Translation Hub)
1 stars 0 forks source link

Investigate why this user can't create new order #701

Open plakitkelly opened 5 months ago

plakitkelly commented 5 months ago

I created this ticket because I had a problems with creating a new order. You can see original text below. But now I found that this user can't create new order also with main user privileges. pic sent to slack (currently this user has main user privileges) You can investigate why this user is broken


Privileges: create_project, view_personal_project Create new order Actual result: Nothing happens by clicking on Esita tellimus. In response:

{ "message": "The user referenced by client institution user id must have the CREATE_PROJECT privilege.", "errors": { "client_institution_user_id": [ "The user referenced by client institution user id must have the CREATE_PROJECT privilege." ] } }

When adding Tellia vahetamine privilege, user sees error: image

plakitkelly commented 5 months ago

It's not only with this user.

  1. I tried with another user - same
  2. I created new user - same
  3. I created new user in another institution - same

But my main user is OK. And another user, what I usually have used as client.

plakitkelly commented 5 months ago

When I created new users in another institution and I couldn't create new order, then I created it with main user. Then I tried to assign the PM with PM account, there was error

Image

thenouan commented 4 months ago

@plakitkelly Can you test this once more? I can't reproduce this at the moment or maybe I'm missing something

plakitkelly commented 4 months ago

@thenouan

  1. I assigned Tõlkekorraldaja role to user who didn't have any role
  2. View the video
  3. Then I assigned peakasutaja role to this user
  4. View the video from 0:42

It also happen with new user

Tõlkekorraldaja privileges: image

plakitkelly commented 4 months ago

@thenouan I tried again with this user and it works now. And other user (new user or user without a privilege) doesn't work. Seems to be a syncing issue ? After this user works normally, it is possible to change the role without problems. I don't know how long this problem occurs, 1-2 days or less.

plakitkelly commented 2 months ago

@MariusJulius I tried everything I did last time but it seems it's not relevant anymore.