diff options
author | francis <francis> | 2008-09-24 12:59:26 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-24 12:59:26 +0000 |
commit | 704a29834ac98c69583a7968fc259ba59a92743d (patch) | |
tree | 31f59706e60f34226abf08fcc41c07c8f682997c /app/models/user.rb | |
parent | e89bd1f6a65c268b97a0e2b9ccbe8589f2fe3963 (diff) |
Let super users change status of requires_admin requests from main site
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 558c2ad3f..ba7e6f72b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -22,7 +22,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.71 2008-09-22 22:16:37 francis Exp $ +# $Id: user.rb,v 1.72 2008-09-24 12:59:27 francis Exp $ require 'digest/sha1' @@ -187,6 +187,10 @@ class User < ActiveRecord::Base def owns_every_request? self.admin_level == 'super' end + # Can the user edit status of requires_admin requests from main website? + def requires_admin_power? + self.admin_level == 'super' + end # Does the user get "(admin)" links on each page on the main site? def admin_page_links? self.admin_level == 'super' |