Merge pull request #5306 from nonamethanks/new-roles

Users: add Contributor and Approver user levels
This commit is contained in:
evazion
2022-10-30 03:27:18 -05:00
committed by GitHub
29 changed files with 105 additions and 251 deletions

View File

@@ -120,7 +120,7 @@ class Post < ApplicationRecord
tag_string: tag_string,
rating: rating,
parent_id: parent_id,
is_pending: !upload.uploader.can_upload_free? || is_pending.to_s.truthy?,
is_pending: !upload.uploader.is_contributor? || is_pending.to_s.truthy?,
artist_commentary: (commentary if commentary.any_field_present?),
)
end