Skip to content

Commit

Permalink
Don't filter groups by owner. Always show all available groups
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Dec 2, 2024
1 parent 241877c commit c7e2e7b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/js/views/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,6 @@ export var FileListView = Backbone.View.extend({

// render groups chooser
var groups = this.model.pluck("group");
if (filter.owner) {
let groupIds = this.model.models.filter(f => f.get('owner').id == filter.owner).map(f => f.get('group').id);
groups = groups.filter(g => groupIds.includes(g.id));
}
var groupsByName = {};
groups.forEach(function (g) {
groupsByName[g.name] = g.id;
Expand Down

0 comments on commit c7e2e7b

Please sign in to comment.