mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
DEV: drop a deprecated function (#21364)
I've made sure there are no usages in plugins
This commit is contained in:
parent
4e0563a8fe
commit
c1c017f433
@ -75,15 +75,6 @@ const DiscourseRoute = Route.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// deprecated, use isCurrentUser() instead
|
|
||||||
isAnotherUsersPage(user) {
|
|
||||||
if (!this.currentUser) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return user.username !== this.currentUser.username;
|
|
||||||
},
|
|
||||||
|
|
||||||
isCurrentUser(user) {
|
isCurrentUser(user) {
|
||||||
if (!this.currentUser) {
|
if (!this.currentUser) {
|
||||||
return false; // the current user is anonymous
|
return false; // the current user is anonymous
|
||||||
|
Loading…
Reference in New Issue
Block a user