aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stif/dashboard.rb
diff options
context:
space:
mode:
authorcedricnjanga2018-01-23 22:46:16 -0800
committercedricnjanga2018-01-23 22:46:16 -0800
commit0f59b9c1d0133393f68194a366aafc27ca23392b (patch)
treeab04bbd04b977a683ee181f0b0bc38c47c2db7f0 /lib/stif/dashboard.rb
parent5ecadfdead964381304fcf56a2564e2045988ef7 (diff)
downloadchouette-core-0f59b9c1d0133393f68194a366aafc27ca23392b.tar.bz2
First draft for including calendars into workgroup for having appropriate scoping
Diffstat (limited to 'lib/stif/dashboard.rb')
-rw-r--r--lib/stif/dashboard.rb2
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