1 -- return whether a scope is currently in use, either a profile setting or on a token
4 INNER JOIN profile_scope ps
USING (scope_id
)
5 WHERE s.
scope = $
(scope)
8 INNER JOIN token_scope ts
USING (scope_id
)
9 WHERE s.
scope = $
(scope)
12 WHERE s.
scope = $
(scope) AND s.is_permanent