diff options
| author | cedricnjanga | 2018-01-23 22:46:16 -0800 | 
|---|---|---|
| committer | cedricnjanga | 2018-01-23 22:46:16 -0800 | 
| commit | 0f59b9c1d0133393f68194a366aafc27ca23392b (patch) | |
| tree | ab04bbd04b977a683ee181f0b0bc38c47c2db7f0 /lib/stif | |
| parent | 5ecadfdead964381304fcf56a2564e2045988ef7 (diff) | |
| download | chouette-core-0f59b9c1d0133393f68194a366aafc27ca23392b.tar.bz2 | |
First draft for including calendars into workgroup for having appropriate scoping
Diffstat (limited to 'lib/stif')
| -rw-r--r-- | lib/stif/dashboard.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/stif/dashboard.rb b/lib/stif/dashboard.rb index b6b6b8284..7dd83efbc 100644 --- a/lib/stif/dashboard.rb +++ b/lib/stif/dashboard.rb @@ -9,7 +9,7 @@ module Stif      end      def calendars -      @calendars ||= Calendar.where('organisation_id = ? OR shared = ?', current_organisation.id, true) +      @calendars ||= Calendar.where('workgroup_id = ? OR shared = ?', @workbench.workgroup_id, true)      end    end  end | 
