165 push permission check fix

Close #165