diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-03-19 14:52:55 -0700 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-03-19 14:52:55 -0700 |
commit | 0adcb32b81002528ea27855e2303118cbe9aefc1 (patch) | |
tree | c0f3efbf627045d9443e6ff3fadcb40e8e85dbdc /lib/ability.rb | |
parent | 844351acd314467dae44af0e10847dfd597fcc03 (diff) | |
parent | f83b917ec2c59da0ce7c27da19b740366da58419 (diff) |
Merge branch 'release/0.8'
Diffstat (limited to 'lib/ability.rb')
-rw-r--r-- | lib/ability.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ability.rb b/lib/ability.rb new file mode 100644 index 000000000..2865ccb1c --- /dev/null +++ b/lib/ability.rb @@ -0,0 +1,5 @@ +module Ability + def self.can_update_request_state?(user, request) + (user && request.is_old_unclassified?) || request.is_owning_user?(user) + end +end
\ No newline at end of file |