2020-05-28 11:32:57 -04:00
|
|
|
import User from "discourse/models/user";
|
2019-10-24 22:23:32 -04:00
|
|
|
|
2024-01-15 06:52:19 -05:00
|
|
|
export default function userViewingSelf(model) {
|
2020-05-28 11:32:57 -04:00
|
|
|
if (User.current()) {
|
2019-10-24 23:00:59 -04:00
|
|
|
return (
|
2020-05-28 11:32:57 -04:00
|
|
|
User.current().username.toLowerCase() === model.username.toLowerCase()
|
2019-10-24 23:00:59 -04:00
|
|
|
);
|
2019-10-24 22:23:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
2024-01-15 06:52:19 -05:00
|
|
|
}
|