small fix #115

Merged
ismail merged 4 commits from frontend into main 2025-12-16 11:12:28 +03:00
Showing only changes of commit 04bfdc09be - Show all commits

View File

@ -1588,6 +1588,9 @@ class MessageForm(forms.ModelForm):
# Validate messaging permissions
if self.user and cleaned_data.get("recipient"):
self._validate_messaging_permissions(cleaned_data)
if self.cleaned_data.get('recipient')==self.user:
raise forms.ValidationError(_("You cannot message yourself"))
return cleaned_data