X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..b4a1e41968e1befdf6fc14715d95549f5537abca:/app/models/access_token.rb diff --git a/app/models/access_token.rb b/app/models/access_token.rb index e5ba2e240..1a5ff8553 100644 --- a/app/models/access_token.rb +++ b/app/models/access_token.rb @@ -45,6 +45,10 @@ class AccessToken < OauthToken before_create :set_authorized_at + def includes_scope?(scope) + self[:"allow_#{scope}"] + end + protected def set_authorized_at