* Add HTML variants for cta optimization and other nav bar adjustments * Fix 1==1 non-random mistake * Spruce up org call-to-action * Change default text color * Add html variant trial and success request specs * Fix article sidebar caching issue * One line adjustment * Modify schema * Add include ActionView::Helpers::TagHelper to user_tag_spec * Modify follow_button to remove session context * Dummy commit * Change Edit Article to Edit Post * Dummy commit * Fix rubocop concerns * Fix rubocop style
33 lines
381 B
Ruby
33 lines
381 B
Ruby
class HtmlVariantPolicy < ApplicationPolicy
|
|
def index?
|
|
user_admin?
|
|
end
|
|
|
|
def show?
|
|
user_admin?
|
|
end
|
|
|
|
def edit?
|
|
user_admin?
|
|
end
|
|
|
|
def update?
|
|
user_admin?
|
|
end
|
|
|
|
def new?
|
|
user_admin?
|
|
end
|
|
|
|
def create?
|
|
user_admin?
|
|
end
|
|
|
|
def destroy?
|
|
user_admin?
|
|
end
|
|
|
|
def permitted_attributes
|
|
%i[html name published approved target_tag]
|
|
end
|
|
end
|