Skip to content

Commit

Permalink
"added david netid as admin
Browse files Browse the repository at this point in the history
 enter the commit message for your changes. Lines starting
  • Loading branch information
stuartteal committed Aug 14, 2014
1 parent f23288e commit b3f61fd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

#Use Service Now. 'cause why not...'
gem 'service_now'

group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
Expand Down
12 changes: 10 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ GEM
mime-types (1.24)
minitest (4.7.5)
multi_json (1.7.9)
mysql2 (0.3.16)
netrc (0.7.7)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
Expand All @@ -82,6 +84,9 @@ GEM
rake (10.1.0)
rdoc (3.12.2)
json (~> 1.4)
rest-client (1.7.2)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
ruby-oci8 (2.1.5)
rubycas-client (2.2.1)
activesupport
Expand All @@ -96,6 +101,9 @@ GEM
sdoc (0.3.20)
json (>= 1.1.3)
rdoc (~> 3.10)
service_now (0.0.3)
json
rest-client
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
Expand All @@ -105,7 +113,6 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.8)
thor (0.18.1)
thread_safe (0.1.2)
atomic
Expand All @@ -129,12 +136,13 @@ DEPENDENCIES
coffee-rails (~> 4.0.0)
jbuilder (~> 1.2)
jquery-rails
mysql2
rails (= 4.0.0)
ruby-oci8
rubycas-client (= 2.2.1)
rubycas-client-rails
sass-rails (~> 4.0.0)
sdoc
sqlite3
service_now
turbolinks
uglifier (>= 1.3.0)
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def current_user
end

def onlyadmins
admin_users = %w{csw3 jl2463 sbt3 dz65 cb585}
admin_users = %w{csw3 jl2463 sbt3 dz65 cb585 deg38 mrd25 }
unless admin_users.include? session[:cas_user]
redirect_to '/unauthorized'
end
Expand Down

0 comments on commit b3f61fd

Please sign in to comment.