|
@@ -70,10 +70,6 @@ Router.route("/privacy", {
|
|
|
template: "privacy"
|
|
|
});
|
|
|
|
|
|
-Router.route("/about", {
|
|
|
- template: "about"
|
|
|
-});
|
|
|
-
|
|
|
Router.route("/feedback", {
|
|
|
template: "feedback"
|
|
|
})
|
|
@@ -146,6 +142,20 @@ Router.route("/admin/alerts", {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+Router.route("/admin/news", {
|
|
|
+ waitOn: function() {
|
|
|
+ return [Meteor.subscribe("isModerator", Meteor.userId()), Meteor.subscribe("isAdmin", Meteor.userId())];
|
|
|
+ },
|
|
|
+ action: function() {
|
|
|
+ var user = Meteor.users.findOne({});
|
|
|
+ if (user !== undefined && user.profile !== undefined && (user.profile.rank === "admin")) {
|
|
|
+ this.render("mnews");
|
|
|
+ } else {
|
|
|
+ this.redirect("/");
|
|
|
+ }
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
Router.route("/u/:user", function() {
|
|
|
this.render("profile");
|
|
|
});
|