admin_data 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,19 +20,19 @@ class AdminData::BaseController < ApplicationController
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def ensure_is_allowed_to_view
|
23
|
-
render :text => '<h2>not authorized</h2>'
|
23
|
+
render :text => '<h2>not authorized</h2>' unless admin_data_is_allowed_to_view?
|
24
24
|
end
|
25
25
|
|
26
26
|
def ensure_is_allowed_to_view_klass
|
27
|
-
render :text => 'not authorized'
|
27
|
+
render :text => 'not authorized' unless admin_data_is_allowed_to_view_klass?
|
28
28
|
end
|
29
29
|
|
30
30
|
def ensure_is_allowed_to_update
|
31
|
-
render :text => 'not authorized'
|
31
|
+
render :text => 'not authorized' unless admin_data_is_allowed_to_update?
|
32
32
|
end
|
33
33
|
|
34
34
|
def ensure_is_allowed_to_update_klass
|
35
|
-
render :text => 'not authorized'
|
35
|
+
render :text => 'not authorized' unless admin_data_is_allowed_to_update_klass?
|
36
36
|
end
|
37
37
|
|
38
38
|
|
@@ -17,7 +17,7 @@ class AdminData::FeedController < AdminData::BaseController
|
|
17
17
|
private
|
18
18
|
|
19
19
|
def ensure_is_allowed_to_view_feed
|
20
|
-
render :text => 'not authorized'
|
20
|
+
render :text => 'not authorized' unless AdminData::Util.is_allowed_to_view_feed?(self)
|
21
21
|
end
|
22
22
|
|
23
23
|
end
|
@@ -87,7 +87,7 @@ class AdminData::SearchController < AdminData::BaseController
|
|
87
87
|
|
88
88
|
def ensure_is_authorized_for_update_opration
|
89
89
|
if %w(destroy delete).include? params[:admin_data_advance_search_action_type]
|
90
|
-
render :text => 'not authorized'
|
90
|
+
render :text => 'not authorized' unless admin_data_is_allowed_to_update?
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
data/lib/admin_data/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: admin_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 16
|
10
|
+
version: 1.0.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Neeraj Singh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-23 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|