app/helpers/sessions_helper.rb
# Returns true iff the current_user can push to the @project repo
# according to GitHub.  We try to avoid calling GitHub if it is
# is obviously unnecessary.
Returns true iff the current_user can push to the @project repo
according to GitHub.  We try to avoid calling GitHub if it is
is obviously unnecessary.
Returns true iff the current_user can push to the @project repo according to GitHub . We try to avoid calling GitHub if it is is obviously unnecessary .
def can_current_user_edit_on_github?(url)
    return false unless current_user.provider == 'github' &&
                        valid_github_url?(url)
    current_user_is_github_owner?(url) || github_user_can_push?(url)
  end
def can_current_user_edit_on_github? ( url ) return false unless current_user . provider == 'github' && valid_github_url? ( url ) current_user_is_github_owner? ( url ) || github_user_can_push? ( url ) end
Returns true iff the current_user can push to the @project repo
according to GitHub.
Returns true iff the current_user can push to the @project repo according to GitHub .
url
<not_specific>