mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 14:49:28 +08:00
![riking](/assets/img/avatar_default.png)
FIX: Don't require login to view post raw FIX: Don't submit read-guidelines for anonymous users (causes unnecessary 403 errors from ensure_logged_in) FIX: Don't pass nil to an array serializer
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
export default Em.ObjectController.extend({
|
|
showLoginButton: Em.computed.equal('path', 'login'),
|
|
|
|
actions: {
|
|
markFaqRead: function() {
|
|
if (Discourse.User.current()) {
|
|
Discourse.ajax("/users/read-faq", { method: "POST" });
|
|
}
|
|
}
|
|
}
|
|
});
|