Skip to content

Commit

Permalink
Merge pull request #2708 from cenit-io/develop
Browse files Browse the repository at this point in the history
Add | Administration origin for build in data types
  • Loading branch information
macarci authored Sep 12, 2019
2 parents 46047ef + c06a8e8 commit d8398dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/setup/cenit_data_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Setup
class CenitDataType < DataType
include RailsAdmin::Models::Setup::CenitDataTypeAdmin

origins :cenit, -> { (Cenit.initializing? || ::User.current_super_admin?) ? :tmp : nil }
origins :cenit, -> { (Cenit.initializing? || ::User.current_super_admin?) ? [:admin, :tmp] : nil }

default_origin :tmp

Expand Down

0 comments on commit d8398dc

Please sign in to comment.