event_calendar_engine 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/event_calendar/application_helper.rb +2 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
@@ -47,6 +47,7 @@ module EventCalendar::ApplicationHelper
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def link_to_deleted_events(wrapper_options={})
|
50
|
+
return unless has_authorization?(:update, Event.new)
|
50
51
|
link_wrapper(event_revisions_path, wrapper_options, {
|
51
52
|
:link_text => "Restore Deleted Events (#{EventRevision.deleted.count})"
|
52
53
|
})
|
@@ -92,6 +93,7 @@ module EventCalendar::ApplicationHelper
|
|
92
93
|
end
|
93
94
|
|
94
95
|
def form_for_browse_event_revisions(event)
|
96
|
+
return unless has_authorization?(:update, event)
|
95
97
|
render :partial => 'events/browse_event_revisions', :locals => {
|
96
98
|
:event => event
|
97
99
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event_calendar_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason LaPier
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-12-
|
19
|
+
date: 2010-12-21 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|