Skip to content

Commit 5a0f87f

Browse files
committed
non-public comments, Angular.JS->AngularJS
1 parent 4c92772 commit 5a0f87f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

handlers/courses/controller/courseFeedbackFetch.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ exports.get = function*() {
1212
var skip = +this.query.skip || 0;
1313
var limit = 10;
1414

15-
var filter = {
16-
$or: []
17-
};
15+
var filter = {};
1816

1917
// for non-admin user filter isPublic
2018
if (!this.isAdmin) {
21-
filter.$or.push({
19+
filter.$or = [{
2220
isPublic: true
23-
});
21+
}];
2422

2523
// or his groups
2624
if (this.user) {

0 commit comments

Comments
 (0)