app/models/concerns/permissions.rb
# Helper method, not to be called from outside the model
Helper method, not to be called from outside the model
Helper method not to be called from outside the model
def core_publishable_by?(context, scope_to_publish_to)
    if context.guest?
      false
    else
      user_id == context.user_id && !public? && (scope_to_publish_to == "public" || private?)
    end
  end
def core_publishable_by? ( context , scope_to_publish_to ) if context . guest? false else user_id == context . user_id && ! public? && ( scope_to_publish_to == "public" || private? ) end end
Helper method, not to be called from outside the model
Helper method not to be called from outside the model
# Publishable if owned by user, and not already public, # and not in another space (if publishing to space)
context
<not_specific>
scope_to_publish_to
<not_specific>