7 lines
215 B
Python
7 lines
215 B
Python
|
|
from app.models.domain.comments import Comment
|
||
|
|
from app.models.domain.users import User
|
||
|
|
|
||
|
|
|
||
|
|
def check_user_can_modify_comment(comment: Comment, user: User) -> bool:
|
||
|
|
return comment.author.username == user.username
|