aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-08-13 16:55:29 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-08-16 13:34:28 +0200
commit79635708b2991bb74c3da5628bd217e18f64ff0d (patch)
tree9ce949736dd5d75b49bf0d95dc81cf3d74543254
parentChanged ProjectAcceptance permissions (diff)
downloadrecruiting-webapp-79635708b2991bb74c3da5628bd217e18f64ff0d.tar.gz
recruiting-webapp-79635708b2991bb74c3da5628bd217e18f64ff0d.tar.bz2
recruiting-webapp-79635708b2991bb74c3da5628bd217e18f64ff0d.zip
Simplify Question permissions
Removed unnecessary check if user is signed up from Question#view_permitted? Behaviour didn't change.
-rw-r--r--app/models/question.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/question.rb b/app/models/question.rb
index f1d380f..be00a84 100644
--- a/app/models/question.rb
+++ b/app/models/question.rb
@@ -62,10 +62,6 @@ class Question < ActiveRecord::Base
# Allow viewing ungrouped questions to everybody
return true if question_group.nil?
- # Deny viewing grouped qestions to guests, so we can assume that
- # acting_user is valid User instance in next tests
- return false unless acting_user.signed_up?
-
# Allow viewing all questions to recruiters
return true if acting_user.role.is_recruiter?