diff options
author | francis <francis> | 2009-10-01 01:43:36 +0000 |
---|---|---|
committer | francis <francis> | 2009-10-01 01:43:36 +0000 |
commit | 705ebd5cb64908a336bab16b190d36ff0456fded (patch) | |
tree | 670eabfc0fccda88db37a590820ec3f1b85f2581 /app/models/user.rb | |
parent | 5fb1cd5857040d4859237013123aa4aec250250a (diff) |
Let some users leave requests undescribed.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 8690f045f..e0698a47f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -24,7 +24,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user.rb,v 1.105 2009-09-20 10:25:13 francis Exp $ +# $Id: user.rb,v 1.106 2009-10-01 01:43:36 francis Exp $ require 'digest/sha1' @@ -218,6 +218,15 @@ class User < ActiveRecord::Base ) end + # Can the user make new requests, without having to describe state of (most) existing ones? + def can_leave_requests_undescribed? + # XXX should be flag in database really + if self.url_name == "heather_brooke" || self.url_name == "heather_brooke_2" + return true + end + return false + end + # Does the user magically gain powers as if they owned every request? # e.g. Can classify it def owns_every_request? |