Skip to content

Commit

Permalink
Update AuthHelper.php
Browse files Browse the repository at this point in the history
fix update routes
  • Loading branch information
vanterbit committed Jul 19, 2023
1 parent 718f293 commit c07a8f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/AuthHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ private static function getControllerRoutes($module, $namespace, $prefix, &$resu
$className = $namespace . Inflector::id2camel($id) . 'Controller';
if ( strpos($className, '-') === false && class_exists($className) && is_subclass_of($className, 'yii\base\Controller') )
{
//Наші костилі
if($className =='Da\User\Controller\AbstractAuthItemController') continue;
if($className =='Da\User\Controller\api\v1\AdminController') continue;
//end
if($id =='admin') continue;
if($prefix . $id =='admin') continue;
if($prefix . $id =='permission') continue;
Expand Down

0 comments on commit c07a8f7

Please sign in to comment.