S
S
Sergey Beloventsev2016-09-09 17:38:28
Yii
Sergey Beloventsev, 2016-09-09 17:38:28

Why is there a 403 error when using dektrium/yii2-rbac?

Installed this extension . Didn't do anything else. Now I'm trying to enter the pages with his admin panel at these addresses

/rbac/permission/index
rbac/role/index
 rbac/rule/index

In response I receive
Forbidden (#403)
    
    Вам не разрешено производить данное действие.

zero documentation in Issues and on the forums unsubscribed while there are no answers can multiply what is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2016-09-09
@Sergalas

In a nutshell:
https://github.com/dektrium/yii2-rbac/blob/master/...
https://github.com/dektrium/yii2-rbac/blob/master/...
More details:

'modules' => [
    'rbac' => [
        'class' => 'dektrium\rbac\RbacWebModule',
        'admins' => ['me'], // me - username под которым логинишься в приложение
    ]
],

D
Dmitry, 2016-09-09
@slo_nik

Good evening.
Tell me, why do you put the whole package, if you can get by with a few files?
Example here
ps Link broken, 404

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question