class ComponentPolicy < ApplicationPolicy def create? user.admin? end def update? create? end def destroy? create? end end