{"action":"opened","issue":{"url":"https://api.github.com/repos/mdmsoft/yii2-admin/issues/291","repository_url":"https://api.github.com/repos/mdmsoft/yii2-admin","labels_url":"https://api.github.com/repos/mdmsoft/yii2-admin/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/mdmsoft/yii2-admin/issues/291/comments","events_url":"https://api.github.com/repos/mdmsoft/yii2-admin/issues/291/events","html_url":"https://github.com/mdmsoft/yii2-admin/issues/291","id":169398515,"number":291,"title":"Helper::filterActionColumn problem","user":{"login":"fullflash","id":19576508,"avatar_url":"https://avatars.githubusercontent.com/u/19576508?v=3","gravatar_id":"","url":"https://api.github.com/users/fullflash","html_url":"https://github.com/fullflash","followers_url":"https://api.github.com/users/fullflash/followers","following_url":"https://api.github.com/users/fullflash/following{/other_user}","gists_url":"https://api.github.com/users/fullflash/gists{/gist_id}","starred_url":"https://api.github.com/users/fullflash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullflash/subscriptions","organizations_url":"https://api.github.com/users/fullflash/orgs","repos_url":"https://api.github.com/users/fullflash/repos","events_url":"https://api.github.com/users/fullflash/events{/privacy}","received_events_url":"https://api.github.com/users/fullflash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T15:09:58Z","updated_at":"2016-08-04T15:09:58Z","closed_at":null,"body":"i am trying to hide edit button for user with  rule ownNews \r\nuse should not see edit button on news that not created by him.\r\n\r\n Helper::filterActionColumn('{view}{update}{delete}')\r\n\r\nthere are two post in news/index gridview but filterActionColumn triggers just **once**\r\nit should check for each row right ?\r\n\r\n\r\n````\r\npublic function execute($user, $item, $params)\r\n    {\r\n        if(isset($params[\"id\"])) {\r\n            $news_id = $params[\"id\"];\r\n            $data = News::find()->select(\"created_by\")->where([\"id\" => $news_id])->limit(1)->asArray()->one();\r\n            return isset($data) ? $user == $data[\"created_by\"] : false;\r\n        }\r\n        return false;\r\n    }\r\n```\r\n"}}
{"actor":{"display_login":"fullflash"}}