Started working with Yii and making a website. I use uLogin as authorization. I implement the rights by the rights extension.

Almost able to combine them, the problem is as follows. If the user is logged in and he is an admin or a regular user, then everything is fine. The Rights :: getAssignedRoles () function returns the desired Admin or Authenticated values.

But if the user is just a guest and views the page, then this function gives him 3 Admin, Authenticated, Guest roles and access does not work correctly. If I forcibly install the Guest role to some registered user, then everything also works correctly.

Where to look for a joint? It seems to have checked everything several times already.

  • oh, somewhere twisted them + yii-user and even this problem is remembered, but this is where the project is. I’ll try to dig out and at the same time make a crutch I’ve made there. And no, sorry. Linked to eauth. - Ray
  • and here ulogin? - do4a
  • In terms of what? I use it in the project and link it with rights - Blackmore

0