@@ -223,6 +223,7 module ApplicationHelper | |||||
223 |
|
223 | |||
224 | # Renders the project quick-jump box |
|
224 | # Renders the project quick-jump box | |
225 | def render_project_jump_box |
|
225 | def render_project_jump_box | |
|
226 | return unless User.current.logged? | |||
226 | projects = User.current.memberships.collect(&:project).compact.uniq |
|
227 | projects = User.current.memberships.collect(&:project).compact.uniq | |
227 | if projects.any? |
|
228 | if projects.any? | |
228 | s = '<select onchange="if (this.value != \'\') { window.location = this.value; }">' + |
|
229 | s = '<select onchange="if (this.value != \'\') { window.location = this.value; }">' + |
General Comments 0
You need to be logged in to leave comments.
Login now