Skip to content

Commit d12e732

Browse files
committed
Disable download by access-pending accounts
Bug fix: don't modify static variable
1 parent 2a3d01b commit d12e732

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

src/app/models/usermodel.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,32 @@ class UserModel {
1515
}
1616

1717
load() {
18+
// Uncomment ONLY to TEST
19+
// return Promise.resolve({
20+
// id: 315605,
21+
// name: "Roy2 Johnson",
22+
// first_name: "Roy2",
23+
// last_name: "Johnson",
24+
// full_name: "Roy2 Johnson",
25+
// uuid: "fca73689-fc4d-4369-bc46-ad6e02b9a13b",
26+
// support_identifier: "cs_fce9a9e8",
27+
// is_test: false,
28+
// faculty_status: "pending_faculty",
29+
// self_reported_role: "student",
30+
// self_reported_school: "Rice U",
31+
// school_type: "unknown_school_type",
32+
// contact_infos: [
33+
// {
34+
// id: 312328,
35+
// type: "EmailAddress",
36+
// value: "rej2+2@rice.edu",
37+
// is_verified: true,
38+
// is_guessed_preferred: true
39+
// }
40+
// ],
41+
// applications: [ ]
42+
// });
43+
1844
const proxyPromise = new Promise((resolve) => {
1945
const handleError = (err) => {
2046
console.warn('Error fetching', this.url, err);

src/app/pages/details/resource-box/resource-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class extends componentType(spec, insertHtmlMixin) {
9292
super.init();
9393
this.model = model;
9494
if (model.link) {
95-
Object.assign(this.view, {
95+
this.view = Object.assign({}, this.view, {
9696
tag: 'a',
9797
attributes: {
9898
href: model.link.url,

0 commit comments

Comments
 (0)