mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Replace if statement so that it doesn't cause a problem with user_exist.
This commit is contained in:
@@ -489,7 +489,7 @@
|
||||
end
|
||||
|
||||
--disable registration for number-alias
|
||||
if (params:getHeader("type") ~= "attr") then
|
||||
if (params:getHeader("sip_auth_method") == "REGISTER") then
|
||||
if (api:execute("user_data", user .. "@" .. domain_name .." attr id") ~= user) then
|
||||
XML_STRING = nil;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user