Home yii2 Yii2 RBAC: how to delete a role?

Yii2 RBAC: how to delete a role?




I use this instruction for setting – INSTRUCTION

But I can not understand – how to delete a role? If I created an erroneous role

Answer 1, Authority 100%

You can remove class Yii \ rbac \ dbmanager

$ role = yii :: $ app- & gt; authmanager- & gt; getrole ("admin");
Yii :: $ App- & gt; AuthManager- & gt; Remove ($ Role);

source Documentation

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions