Skip to content

Commit

Permalink
Merge pull request #71 from nineaiyu/dev
Browse files Browse the repository at this point in the history
fix: ignore notify field permission
  • Loading branch information
nineaiyu authored Dec 2, 2024
2 parents cbaac1b + eaa1899 commit 4cea7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifications/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def send_msg(cls, subject, message, user_ids=None, level=MessageContent.LevelCho
def push_notice_messages(cls, notify_obj, pks):
notice_message = NoticeMessageSerializer(
fields=['pk', 'level', 'title', 'notice_type', 'message'],
instance=notify_obj).data
instance=notify_obj, ignore_field_permission=True).data
notice_message['message_type'] = 'notify_message'
for pk in pks:
if UserConfig(pk).PUSH_MESSAGE_NOTICE:
Expand Down

0 comments on commit 4cea7c0

Please sign in to comment.