Yii 1.1.1.r1907
Yii 1.1.1.r1907
It would be nice if the "Create New Item" option was a little more obvious/intuitive.
Maybe up on the toolbar with "Manage AuthItem | Autocreate Auth Items | Edit always allowed list | Clear obsolete authItems"
Thanks
I love the new blog demo!
Create new authItem belongs to "Manage AuthItems" , maybe the icon to create new auth items should be made more obvious
Hey:)
Demo not working:
http://spyros.agilityhoster.com/demos/index.php?r=srbac/authItem/assign
http://spyros.agilityhoster.com/demos/index.php?r=site/spinnerDoc
Regards,
CoLT
Probably they updated their php version or something.
I will update it with Yii 1.1.2
Yes please. Where is the new auth item icon?
It currently is located at the following location
Click on the "Managing auth items" icon
Then there is a "Create" icon to the left of the "Search" label for the search filter.
It is hardly recognizable, I thought the icon was related to the search.
However, I have found myself using the “Autocreate Auth Items”, and don’t really create things manually, but I am glad to have the option.
Thank you! Looked at that icon a dozen times and didn’t even think to try clicking on it. I thought it was search related as well.
Thanks for noticing that, I think a “New” label next to the icon is required
Once last problem, for some reason it seems like I can lock down everything except for the srbac module itself.
‘debug’=>false
srbac isn’t in the always allow (unless i am missing something)
all srbac operations are assigned to my administrator role.
sbrac 1.1.1 rc2
yii 1.1.2
any ideas what I may be doing wrong?
~Alan
Have you assigned the Authority role to a user?
Untill you do so all srbac actions are available to anyone
That was my problem. I had set up my own roles and didn’t use the authority role.
Thanks
Not trying to be a needy newbie, but I had another question. I did a quick search of the documentation for rbac/srbac and didn’t see an answer.
I used gii to create a new module for my app, and I couldn’t use srbac to “Autocreate Auth Items” for the gii created “DefaultController”. I was able to create other controllers and administer them with srbac, it was just the “DefaultController” that had issues. Any reason for the hidden “DefaultController”?
Thanks
Does your DefaultController extends SBaseController?
Autocreate works only for those controllers that extend SBase controller (or any of its child classes)
Strange to see these items not translated.
Modify \srbac\views\authitem\assignments.php
50 'prompt'=>Helper::translate('srbac','select user')
[edit]
Also
\srbac\controllers\SBaseController.php
76 $error["title"] = Helper::translate('srbac','You are not authorized for this action');
77 $error["message"] = Helper::translate('srbac','Error while trying to access').' '.$mod."/".$this->id."/".$this->action->id."." ;
Best regards,
CoLT
Yes, I verified that they do extend SBaseController.
didn’t seem to help
Sorry, my comment was unrelated to your post
Strange behaviour:
When I add auth items but do not set them to any role (only defaultAdministrating task) I got following error:
Error: 500
Invalid argument supplied for foreach()
Application Log
Timestamp Level Category Message
16:12:30.13093 error php
Invalid argument supplied for foreach()
(C:\wamp\www\ssisb8\lib\yii\zii\widgets\CMenu.php:176)
Stack trace:
#0 C:\wamp\www\ssisb8\lib\yii\web\CBaseController.php(173):
OrganisationController->createWidget()
#1 C:\wamp\www\ssisb8\www\themes\ssis\views\layouts\column2.php(16):
OrganisationController->widget()
#2 C:\wamp\www\ssisb8\lib\yii\web\CBaseController.php(119): require()
#3 C:\wamp\www\ssisb8\lib\yii\web\CBaseController.php(88):
OrganisationController->renderInternal()
#4 C:\wamp\www\ssisb8\lib\yii\web\CController.php(689):
OrganisationController->renderFile()
#5 C:\wamp\www\ssisb8\modules\srbac\controllers\SBaseController.php(82):
OrganisationController->render()
#6 C:\wamp\www\ssisb8\modules\srbac\controllers\SBaseController.php(56):
OrganisationController->onUnauthorizedAccess()
#7 C:\wamp\www\ssisb8\lib\yii\web\CController.php(298):
OrganisationController->beforeAction()
#8 C:\wamp\www\ssisb8\lib\yii\web\filters\CFilterChain.php(129):
OrganisationController->runAction()
#9 C:\wamp\www\ssisb8\lib\yii\web\filters\CFilter.php(41):
CFilterChain->run()
#10 C:\wamp\www\ssisb8\lib\yii\web\CController.php(999):
CAccessControlFilter->filter()
#11 C:\wamp\www\ssisb8\lib\yii\web\filters\CInlineFilter.php(59):
OrganisationController->filterAccessControl()
#12 C:\wamp\www\ssisb8\lib\yii\web\filters\CFilterChain.php(126):
CInlineFilter->filter()
#13 C:\wamp\www\ssisb8\lib\yii\web\CController.php(283):
CFilterChain->run()
#14 C:\wamp\www\ssisb8\lib\yii\web\CController.php(257):
OrganisationController->runActionWithFilters()
#15 C:\wamp\www\ssisb8\lib\yii\web\CWebApplication.php(320):
OrganisationController->run()
#16 C:\wamp\www\ssisb8\lib\yii\web\CWebApplication.php(120):
CWebApplication->runController()
#17 C:\wamp\www\ssisb8\lib\yii\base\CApplication.php(135):
CWebApplication->processRequest()
#18 C:\wamp\www\ssisb8\www\index.php(13): CWebApplication->run()
REQUEST_URI=/ssisb8/www/lt_lt/organisation
All in all, srbac is EASING ALL THE RBAC PROCESS TO MINIMUM! Thanks again for great extension!
CoLT