Skip to content

Commit

Permalink
Hide circles that the user is not member
Browse files Browse the repository at this point in the history
Files-circles-panel: in javascript interface, just show the circles that the current user is member of.

Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
  • Loading branch information
viniciuscb committed Oct 4, 2017
1 parent e04b7e0 commit b39762f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/circles.files.list.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
var circleIds = val.split(','),
circles = [];

OCA.Circles.api.listCircles("all", '', 0, function(result) {
OCA.Circles.api.listCircles("all", '', 1, function(result) {
_.each(circleIds, function(circleId) {
var circle = _.find(result.data,function(circleData) {
return circleData.unique_id == circleId;
Expand Down Expand Up @@ -160,7 +160,7 @@
*/
_queryCirclesAutocomplete: function(query) {

OCA.Circles.api.listCircles("all", query.term, 0, function(result) {
OCA.Circles.api.listCircles("all", query.term, 1, function(result) {
query.callback({
results: result.data
});
Expand Down

1 comment on commit b39762f

@dtygel
Copy link
Member

@dtygel dtygel commented on b39762f Oct 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.