diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index fd37f6799..86e8f35c9 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -142,6 +142,7 @@ class UsersController < ApplicationController send_data( File.open(tar_path).read, :filename => "#{current_user.id}.tar" ) end + before_filter :redirect_unless_admin, :only => :generate_new_token def generate_new_token if current_user.reset_authentication_token! @token = current_user.authentication_token diff --git a/spec/models/bookmark_spec.rb b/spec/models/bookmark_spec.rb index 80a288f38..eb938773c 100644 --- a/spec/models/bookmark_spec.rb +++ b/spec/models/bookmark_spec.rb @@ -19,7 +19,7 @@ describe Bookmark do } }, "object"=> { - "url"=>"cubbi.es/daniel", + "url"=>"http://cubbi.es/daniel", "objectType"=>"bookmark" } }