app/models/platform/access_token.rb in bullet_train-api-1.2.4 vs app/models/platform/access_token.rb in bullet_train-api-1.2.5
- old
+ new
@@ -26,7 +26,20 @@
# 🚅 add delegations above.
def label_string
description
end
+
+ def system_level?
+ return false unless application
+ !application.team_id
+ end
+
+ def description
+ if system_level?
+ application.name
+ else
+ super
+ end
+ end
# 🚅 add methods above.
end