summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-12-31 12:16:43 -0800
committerjessib <jessib@riseup.net>2013-12-31 12:16:43 -0800
commit47d9b62913789358aefe769de6b7e33da8547891 (patch)
tree20f9bf0f60b3a45209b94850c62245646d11c79c /users/app
parentfe3e374daa274a38723da52d929805b80f7ef383 (diff)
Add authentication to API, but not sure it is best way.
Diffstat (limited to 'users/app')
-rw-r--r--users/app/controllers/v1/messages_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/v1/messages_controller.rb b/users/app/controllers/v1/messages_controller.rb
index 42a88f7..b58dfe9 100644
--- a/users/app/controllers/v1/messages_controller.rb
+++ b/users/app/controllers/v1/messages_controller.rb
@@ -1,7 +1,7 @@
module V1
class MessagesController < ApplicationController
- # TODO need to add authentication
+ before_filter :authorize_admin # not sure this is best way
respond_to :json
# for now, will not pass unseen, so unseen will always be true