Files

17 lines
360 B
JavaScript
Raw Permalink Normal View History

2019-12-13 11:54:32 +11:00
import Route from "@ember/routing/route";
2019-10-28 14:05:58 +11:00
2019-12-13 11:54:32 +11:00
export default Route.extend({
2019-12-16 10:42:55 +11:00
templateName: "user/billing",
2019-10-25 13:23:32 +11:00
setupController(controller, model) {
if (
this.currentUser.admin ||
this.currentUser.id === this.modelFor("user").id
) {
2019-10-25 13:23:32 +11:00
controller.setProperties({ model });
} else {
this.replaceWith("userActivity");
2019-10-25 14:00:59 +11:00
}
2020-09-16 09:53:50 -05:00
},
2019-10-25 13:23:32 +11:00
});