|
@@ -74,9 +74,9 @@ |
|
|
block discarded – undo |
|
74
|
74
|
|
|
75
|
75
|
// Check for a full route path where the module ends with admin like `newsadmin` and this module is loaded in the list of modules. |
|
76
|
76
|
// @see https://github.com/luyadev/luya/pull/2027 |
|
77
|
|
- if (count($parts) > 0 && StringHelper::endsWith($first, 'admin') && Yii::$app->hasModule($first)) |
|
78
|
|
- $this->_isAdmin = true; |
|
79
|
|
- elseif (StringHelper::startsWith($first, 'admin')) { |
|
|
77
|
+ if (count($parts) > 0 && StringHelper::endsWith($first, 'admin') && Yii::$app->hasModule($first)) { |
|
|
78
|
+ $this->_isAdmin = true; |
|
|
79
|
+ } elseif (StringHelper::startsWith($first, 'admin')) { |
|
80
|
80
|
$this->_isAdmin = true; |
|
81
|
81
|
} else { |
|
82
|
82
|
$this->_isAdmin = false; |
Please login to merge, or discard this patch.