Yii Framework Forum: Authmanager Getpermissionsbyuser - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Authmanager Getpermissionsbyuser Rate Topic: -----

#1 User is offline   Alex2308 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-September 11

Posted 14 June 2014 - 05:01 PM

Hey,

I'm currently working on a webinterface for the Rbac Feature in YiiFramwork2.

When I try to get the permissions for a user i use the authManager method getPermissionsByUser($userid)

As result I get only the permissions i assigned through roles, and not the permissions i assigned directly?

Is this intended behavior?

$auth = \Yii::$app->authManager->getPermissionsByUser($userid)


Kind regards

Configuration:
-Framework 2.0.0-beta
-Php 5.5.13
-Nginx Webserver
-MariaDB


Alex
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users