Skip to content

Commit

Permalink
Fixed issue with Plan & Template visibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminfaure committed Oct 24, 2022
1 parent 5eff207 commit 4b2fe7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/models/plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class Plan < ApplicationRecord

alias_attribute :name, :title

attribute :visibility, :integer, default: 3

# ================
# = Associations =
# ================
Expand Down
4 changes: 0 additions & 4 deletions app/models/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ class Template < ApplicationRecord
attribute :customization_of, :integer, default: nil
attribute :family_id, :integer, default: -> { Template.new_family_id }

# TODO: re-add visibility setting? (this is handled in org_admin/create and
# relies on the org_id in the current callback-form)
attribute :visibility, :integer, default: 0

# ================
# = Associations =
# ================
Expand Down

0 comments on commit 4b2fe7e

Please sign in to comment.