aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb11
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?