edit plugins_controller add def check_permission