mumuki-domain 7.7.0 → 7.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/discussion.rb +1 -1
- data/lib/mumuki/domain/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1efee52b12a7be242fdb13883331838d1ee17e0a396d5b0df95b54c3d209bdb
|
4
|
+
data.tar.gz: a6e75dfa224cd6a3642c77d23d1190906d427506b0fb90905b1f636f2c9ecd72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f66e5cb6acf1f40de30d9a1da7056626eeb513db95822a75b4b59fae0fbe0718795fd5ad33c38fd2df1e5a277d3a1b5390c78b87558c4976b4cc72921912f86f
|
7
|
+
data.tar.gz: 6f2e61ba1908513448c72c448cb1e0f92582e502304d6756bdb82f4ca4d0a9dfe783fc12669613ea4bf99cd3e1bf2b8397ac6142e28cad8517dd0123175dbfcb
|
data/app/models/discussion.rb
CHANGED
@@ -145,7 +145,7 @@ class Discussion < ApplicationRecord
|
|
145
145
|
end
|
146
146
|
|
147
147
|
def update_last_moderator_access!(user)
|
148
|
-
|
148
|
+
if user&.moderator_here? && !last_moderator_access_visible_for?(user)
|
149
149
|
update! last_moderator_access_at: Time.now,
|
150
150
|
last_moderator_access_by: user
|
151
151
|
end
|