Comments (8)
Hi, in your grid missing the view link
- assignments grid.
This link opens the following page - assign roles page
On this page you can assign all available roles to user.
from yii2-rbac.
In your case for user with ID=66 this link looks as rbac/assignment/view?id=66
from yii2-rbac.
Also if you override the gridViewColumns property you should add the view link to your array as follows:
return [
'modules' => [
'admin' => [
'class' => 'app\modules\admin\Module',
'modules' => [
'rbac' => [
'class' => 'yii2mod\rbac\Module',
'controllerMap' => [
'assignment' => [
'class' => 'yii2mod\rbac\controllers\AssignmentController',
'gridViewColumns' => [
'id',
'username',
'email',
// you should add this code
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view}'
]
]
]
]
],
]
],
],
'components' => [
'authManager' => [
'class' => 'yii\rbac\DbManager',
'defaultRoles' => ['guest', 'user']
],
]
];
from yii2-rbac.
Hey hey @igor-chepurnoi Thanks for getting back to me so quickly.
Yeah I see,:) Since the action column never changes (i.e. it's just the view link and no others on that grid, would it not be an idea to ArrayHelper::merge the action column with that gridViewColumns array on setup? That way, if it is left out of the gridViewColumns config array, it will be merged in anyway, and if it is defined, then it can be overridden?
Thanks again for putting together such an easy to use module, and thank you again for getting back to me so quickly. Hope this finds you well.
from yii2-rbac.
Since the action column never changes (i.e. it's just the view link and no others on that grid, would it not be an idea to ArrayHelper::merge the action column with that gridViewColumns array on setup?
Resolved by 3219ffd
from yii2-rbac.
I create the new release 1.8 with this 3219ffd changes. Update your package by composer update
.
Thanks.
from yii2-rbac.
Thank you so so much:)
from yii2-rbac.
You are welcome :)
from yii2-rbac.
Related Issues (20)
- Can't access module routes HOT 9
- Error When Create New Role or Permission HOT 4
- Update RouteModel.php to future proof for php 7.2 HOT 2
- Do create role and permission function actually work? HOT 4
- How to get a list of standard routes(not modules) HOT 8
- Useless RBAC route from database
- How I can pass parameters to a rule? HOT 1
- Can I add my route to the list of routes? HOT 5
- No error message but not save for the field with date type only.
- Need a help for how to stop open link without login HOT 1
- AuthItemSearch failing HOT 1
- Can't install Yii2 RBAC Extension HOT 1
- where and how to add rule?
- RBAC whitelist in config does not allow POST
- PHP Fatal Error – yii\base\ErrorException
- My assignment Page is empty
- Filter access to controller actions of a module HOT 1
- CSRF validation 400 (Bad Request).
- Display a permission description instead of a name
- Id not integer in the assigment/view route HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-rbac.