components/ItemController.php 1 location
|
@@ 108-115 (lines=8) @@
|
| 105 |
|
* @param string $id |
| 106 |
|
* @return mixed |
| 107 |
|
*/ |
| 108 |
|
public function actionDelete($id) |
| 109 |
|
{ |
| 110 |
|
$model = $this->findModel($id); |
| 111 |
|
Configs::authManager()->remove($model->item); |
| 112 |
|
Helper::invalidate(); |
| 113 |
|
|
| 114 |
|
return $this->redirect(['index']); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
/** |
| 118 |
|
* Assign items |
controllers/RuleController.php 1 location
|
@@ 106-113 (lines=8) @@
|
| 103 |
|
* @param string $id |
| 104 |
|
* @return mixed |
| 105 |
|
*/ |
| 106 |
|
public function actionDelete($id) |
| 107 |
|
{ |
| 108 |
|
$model = $this->findModel($id); |
| 109 |
|
Configs::authManager()->remove($model->item); |
| 110 |
|
Helper::invalidate(); |
| 111 |
|
|
| 112 |
|
return $this->redirect(['index']); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
/** |
| 116 |
|
* Finds the AuthItem model based on its primary key value. |