diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-12-28 03:38:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-28 03:38:41 +0100 |
commit | 6e49907ecfc7036b6bf2dd91b9ebf4ba62d16080 (patch) | |
tree | 9539e8e60b270a4e283e9cb41d370be6116f7259 /app/models | |
parent | 8c5116fa2c197f61aa34e3d1f7f7a11631ec2e0a (diff) |
Improve admin UI for account view (#9643)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 77e48ed4b..1684b9bea 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -139,6 +139,10 @@ class User < ApplicationRecord confirmed_at.present? end + def invited? + invite_id.present? + end + def staff? admin? || moderator? end |