diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-04 08:00:40 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-04 08:00:40 -0500 |
commit | 39cfd26ddb2ac6b27932f82a486f04130bc3a646 (patch) | |
tree | 81c6476fe444d3726e78f2b26c2d4d4eaff61001 /misc/freeswitch/scripts/common | |
parent | 06ee958ddc3066cab0893bfa9174db7a76e8c250 (diff) |
group_ids can be empty
Diffstat (limited to 'misc/freeswitch/scripts/common')
-rw-r--r-- | misc/freeswitch/scripts/common/group.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/common/group.lua b/misc/freeswitch/scripts/common/group.lua index db56129..1763e69 100644 --- a/misc/freeswitch/scripts/common/group.lua +++ b/misc/freeswitch/scripts/common/group.lua @@ -89,7 +89,7 @@ end function Group.permission_targets(self, group_ids, permission) - if not group_ids or not permission then + if not group_ids or #group_ids == 0 or not permission then return {}; end |