X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b2a8df0bd73f1031dcf4684e084897a28b117345..81c58571c5b9170e8b82ab0ef78aa8970da0e676:/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