Skip to content

Commit

Permalink
(fix) wrong use of this which was breaking ACL module
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Aug 10, 2015
1 parent e41e17c commit c738a2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/WebServerResources/js/Common/User.service.js
Expand Up @@ -45,6 +45,7 @@
*/
User.$filter = function(search, excludedUsers) {
var param = {search: search};
var _this = this;

if (!search) {
// No query specified
Expand All @@ -60,7 +61,7 @@
return User.$$resource.fetch(null, 'usersSearch', param).then(function(response) {
var results, index, user,
compareUids = function(data) {
return this.uid == data.uid;
return _this.uid == data.uid;
};
if (excludedUsers) {
// Remove excluded users from response
Expand Down

0 comments on commit c738a2d

Please sign in to comment.