Sha256: 154661aa934833771e3dcf653d7a177c33b81a528cf0c76aa6f6256d621a7b15

Contents?: true

Size: 556 Bytes

Versions: 40

Compression:

Stored size: 556 Bytes

Contents

module Usman
  module ActionView
    # This module creates Bootstrap wrappers around basic View Tags
    module PermissionsHelper
      
      # -------------------
      # Display Helpers
      # -------------------

      def display_edit_links?
        @current_user.super_admin? || @current_permission.can_update?
      end

      def display_delete_links?
        @current_user.super_admin? || @current_permission.can_delete?
      end

      def display_manage_links?
        display_edit_links? || display_delete_links?
      end

    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
usman-0.4.10.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.9.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.8.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.7.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.6.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.5.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.4.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.3.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.2.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.1.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.4.0.pre.materialize lib/usman/action_view/permissions_helper.rb
usman-0.3.38 lib/usman/action_view/permissions_helper.rb
usman-0.3.37 lib/usman/action_view/permissions_helper.rb
usman-0.3.36 lib/usman/action_view/permissions_helper.rb
usman-0.3.35 lib/usman/action_view/permissions_helper.rb
usman-0.3.34 lib/usman/action_view/permissions_helper.rb
usman-0.3.33 lib/usman/action_view/permissions_helper.rb
usman-0.3.32 lib/usman/action_view/permissions_helper.rb
usman-0.3.31 lib/usman/action_view/permissions_helper.rb
usman-0.3.30 lib/usman/action_view/permissions_helper.rb