ish_manager 0.1.8.202 → 0.1.8.203
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46db7bf049c2bb8965fbc99bc1bbea7c3afe518cd49fc0152334c6d9392ba47a
|
4
|
+
data.tar.gz: 46ed8ae25fc70a6549c59aa9721368a2e90469866d70eaff9a3f2a964022ac07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf9f7449dfc0627de5f52df51e10b6543e67a12cfe2ce959f6dfaeadfacc6e2bbc612a13c8f74f4248575681f293d0ed361e8f88699dace0d15c3b36c864a648
|
7
|
+
data.tar.gz: 2e0bb36ca9ebc5f3ada32cb7a642f4d643eae6c1001fe4e41e19b257f799128fca886159392aef1cc8bf120cb2f0aa0a210910f2c22ff342cf9c5fd763d21eb6
|
@@ -39,14 +39,17 @@ class IshManager::Ability
|
|
39
39
|
|
40
40
|
can [ :new ], Newsitem
|
41
41
|
|
42
|
-
can [ :new, :create ], Report
|
42
|
+
can [ :index, :new, :create ], Report
|
43
|
+
can [ :edit, :update, :destroy ], Report do |g|
|
44
|
+
!g.is_trash && ( g.is_public || g.user_profile == user.profile )
|
45
|
+
end
|
43
46
|
|
44
47
|
can [ :show, :edit, :update, :create_newsitem, :new_feature, :create_feature, :newsitems_index ], ::Site do |site|
|
45
48
|
!site.is_private && !site.is_trash
|
46
49
|
end
|
47
50
|
can [ :manage ], Ish::StockWatch
|
48
51
|
|
49
|
-
|
52
|
+
can [ :index, :new, :create ], ::Tag
|
50
53
|
|
51
54
|
can [ :index, :new, :create ], ::Video
|
52
55
|
can [ :edit, :update, :destroy ], ::Video do |v|
|
@@ -28,14 +28,13 @@
|
|
28
28
|
%br
|
29
29
|
|
30
30
|
.row
|
31
|
-
.col-md-
|
31
|
+
.col-md-4
|
32
32
|
%label{} City
|
33
33
|
= select :report, :city_id, @cities_list, :class=>"btn"
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
.col-md-6
|
34
|
+
.col-sm-4
|
35
|
+
= f.label :premium_tier
|
36
|
+
= f.number_field :premium_tier
|
37
|
+
.col-md-4
|
39
38
|
.field
|
40
39
|
= f.label :Coordinates
|
41
40
|
.panel.panel-default
|
@@ -50,14 +49,10 @@
|
|
50
49
|
%label{} Y-coordinate
|
51
50
|
= f.text_field :y, :placeholder => "y", :type => "text", :class=>"form-control"
|
52
51
|
|
53
|
-
|
54
|
-
|
55
52
|
.row
|
56
53
|
.col-md-6
|
57
54
|
= f.label :site
|
58
55
|
= f.select :site_id, options_for_select(@sites_list, :selected => report.site_id || params[:site_id] )
|
59
|
-
|
60
|
-
|
61
56
|
.col-md-6
|
62
57
|
%label{} Tags
|
63
58
|
= select :report, :tag_id, @tags_list, :value=>"select a tag"
|