-
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`eabase`.`rbac_auth_item`, CONSTRAINT `rbac_auth_item_ibfk_1` FOREIGN KEY (`rule…
-
У меня роль super_admin не могу получить к админу почему ?
use modules\rbac\models\Role;
if (Yii::$app->can(Role::ROLE_ADMIN)) {
}
получаю если явно задать
use modules\rbac\models\Role;
i…
-
I have an issue with updating the extension to version 1.5. I already made all things like `composer clearcache`, removed vendor directory, and when I make `composer update` I see this:
...
- In…
drSun updated
4 years ago
-
My `composer.json`:
```json
{
"name": "neoacevedo/openbiblio2",
"description": "Sistema automatizado de gestión bibliotecaria y OPAC.",
"keywords": ["yii2", "opac", "openbiblio2", "…
-
Hi I am pretty new to yii. Installed yii2-admin via docker, and applied the following 'as access' on web.php to force user login, but this doesn't seem to work, I can access all controller without bei…
-
### What steps will reproduce the problem?`
I want to integrate the yii2 log database component, in advanced app :
File : console\config\main.php
what doesn't work :
```php
'controllerMap' …
-
### What steps will reproduce the problem?
(tl;dr):
Look at the following lines:
1. This one is good https://github.com/yiisoft/yii2/blob/943101255d938ed6aeec4578d4d6d9b3e01a61d3/framework/rbac/…
-
```php
$auth = Yii::$app->authManager;
// add the rule
$rule = new \app\rbac\AuthorRule;
$auth->add($rule);
// add "updateOwnPost" permission and bind a rule to it
$…
-
Михаил, подскажите, как указать права доступа в PathController по операциям. Как в Вашем примере для 'mihaildev\elfinder\Controller'
``` php
[
'path' => 'files/s…
-
Hi, I am using Yii2 basic and implemented the case where user can login from two tables "admin" and "employee." admin and employee table has id which is primary key and also implelmented the RBAC us…