diff options
author | elijah <elijah@riseup.net> | 2016-03-20 01:13:24 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-28 16:03:54 -0700 |
commit | c63791c7ffacb7c6cfc685e2654ffe66f0a6b185 (patch) | |
tree | be68b1c5906d06f2669e102d99ea6ca02b7d2856 /app/models/anonymous_user.rb | |
parent | ef5f9636863a8bddb704714027c6540dc5a0b781 (diff) |
api tokens: allow for special api tokens that work like session tokens but are configured in the static config, to be used for infrastructure monitoring.
Diffstat (limited to 'app/models/anonymous_user.rb')
-rw-r--r-- | app/models/anonymous_user.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/anonymous_user.rb b/app/models/anonymous_user.rb index 5745316..e1f7a0e 100644 --- a/app/models/anonymous_user.rb +++ b/app/models/anonymous_user.rb @@ -9,6 +9,10 @@ class AnonymousUser < Object false end + def is_test? + false + end + def id nil end |