Sha256: 9ce44bffbbb21a3de5345c177c12f4bea1bc39c42808f3a89de625415517ab42
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true module Spree module PermissionSets # Permissions for viewing the admin dashboard. # # Roles with this permission set will be able to view the admin dashboard, # which may or not contain sensitive information depending on # customizations. class DashboardDisplay < PermissionSets::Base class << self def privilege :other end def category :dashboard_display end end def activate! Spree.deprecator.warn "The #{self.class.name} module is deprecated. " \ "If you still use dashboards, please copy all controllers and views from #{self.class.name} to your application." can [:admin, :home], :dashboards end end end end
Version data entries
3 entries across 3 versions & 1 rubygems