update phân quyền chi tiết
This commit is contained in:
@@ -72,6 +72,8 @@ class CommonGrid {
|
||||
|
||||
public static function rows($type, $bigSize = false) {
|
||||
return function($model, $index, $widget, $grid) use ($type, $bigSize) {
|
||||
if (!\Yii::$app->user->can($type . "Update"))
|
||||
return [];
|
||||
return [
|
||||
"ondblclick" => "common.form(this, '{$type}', {$bigSize});",
|
||||
"style" => "cursor: pointer;",
|
||||
|
||||
Reference in New Issue
Block a user