mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-23 02:44:18 +00:00
(fix) wrong use of this which was breaking ACL module
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
*/
|
||||
User.$filter = function(search, excludedUsers) {
|
||||
var param = {search: search};
|
||||
var _this = this;
|
||||
|
||||
if (!search) {
|
||||
// No query specified
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user