Files

12 lines
236 B
JavaScript
Raw Permalink Normal View History

import User from "discourse/models/user";
2019-10-25 13:23:32 +11:00
export default function userViewingSelf(model) {
if (User.current()) {
2019-10-25 14:00:59 +11:00
return (
User.current().username.toLowerCase() === model.username.toLowerCase()
2019-10-25 14:00:59 +11:00
);
2019-10-25 13:23:32 +11:00
}
return false;
}