We don’t have it set up automatically in the database, although I suppose you could do that with triggers in MySQL or Postgres, particularly if you are using a default role. In our apps we have modeled the auth tables and do this:
$authAssignment = new AuthAssignment();
$authAssignment->userid = $user->userId;
$authAssignment->itemname = $roleName;
$authAssignment->save();
how did RBAM usse the CPhpAuthManager?
Demo site doesn’t allow admin to go to the RBAM.
gives: Error 403
You are not authorized to perform this action.
boaz
(Boaz Rymland)
February 25, 2014, 9:16am
104
Boaz:
I’ve stumbeled upon the bug described below. Intrestingly, when looking at “auth assignments”, the fitler shows both upper case and lower case results, but when examining “auth items”, only upper case rows are shown when clicking on the “go to letter” filter.
Anyone got some resolution to this, or even a pointer?
Got a solution. It involves messing with the original code but it seems like this extension is not too maintained so… here goes:
This is for v1.6.1
Edit class ApArrayDataProvider , line 41 .
Change:
$this->alphaFilterData($currentPage===0?0:$search, $alphapagination->attribute, $alphapagination->forceCaseInsensitive);
To:
$this->alphaFilterData($currentPage===0?0:$search, $alphapagination->attribute, true);
thg303
(A Good Per)
April 18, 2014, 6:04am
105
there’s a serious bug with setting ‘initialise’ property in linux.
when you set ‘initialise’=>true , it shows a “404 requested action not found”.
I’ve faced this before, it’s because of CamelCase issue of Controller classes in linux, so I renamed files and class names from
"RbamInitialiseController", "AuthAssignmentsController", "AuthItemsController"
to:
"RbaminitialiseController", "AuthassignmentsController", "AuthitemsController"
and all related folder names in the ‘views’ directory.
Hi,
I am having problem in using the RBAM module for the generate part. When I try to open the Generate Auth Data tab I am getting this error. Although My user id is created once the user is logged in.Some how the user id that is set is removed. Please help me
Property "CWebUser.__id" is not defined.
Thanks in advance.