ndr_ui 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/ndr_ui/bootstrap_helper.rb +3 -3
- data/lib/ndr_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9251b6829a45855bbf3b52573285d8cf1621c4355054a478753febec951e832
|
4
|
+
data.tar.gz: '043978f3db1be0bffbb30dba0f35425ed1c45286534f5ed3de2a32682c6b22d3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b56e1411e9a349b27807911e621dcded460372439c03da2c62db2ff6c1168cf0c5ca2e20c23d985dd44ab3741095e3169238aba5dafc2c3aaf4951585ea54e68
|
7
|
+
data.tar.gz: ac80973afb0c69e59c148020658ba988316cb55c022cf39306ffd077244f1adf0987b8eb300199e91704bb00b92727c61504094599f1b3df0ff6fa8b848c3f40
|
@@ -448,7 +448,7 @@ module NdrUi
|
|
448
448
|
# </a>
|
449
449
|
#
|
450
450
|
def details_link(path, options = {})
|
451
|
-
return unless ndr_can?(:read, path)
|
451
|
+
return unless options[:skip_authorization] || ndr_can?(:read, path)
|
452
452
|
|
453
453
|
link_to_with_icon({ icon: 'share-alt', title: 'Details', path: path }.merge(options))
|
454
454
|
end
|
@@ -467,7 +467,7 @@ module NdrUi
|
|
467
467
|
# </a>
|
468
468
|
#
|
469
469
|
def edit_link(path, options = {})
|
470
|
-
return unless ndr_can?(:edit, path)
|
470
|
+
return unless options[:skip_authorization] || ndr_can?(:edit, path)
|
471
471
|
|
472
472
|
path = edit_polymorphic_path(path) if path.is_a?(ActiveRecord::Base)
|
473
473
|
|
@@ -488,7 +488,7 @@ module NdrUi
|
|
488
488
|
# <span class="glyphicon glyphicon-trash icon-white"></span>
|
489
489
|
# </a>'
|
490
490
|
def delete_link(path, options = {})
|
491
|
-
return unless ndr_can?(:delete, path)
|
491
|
+
return unless options[:skip_authorization] || ndr_can?(:delete, path)
|
492
492
|
|
493
493
|
defaults = {
|
494
494
|
icon: 'trash icon-white', title: 'Delete', path: path,
|
data/lib/ndr_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NDR Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|