summaryrefslogtreecommitdiff
path: root/lib/lace/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lace/compiler.lua')
-rw-r--r--lib/lace/compiler.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lace/compiler.lua b/lib/lace/compiler.lua
index 26a4e23..57b432f 100644
--- a/lib/lace/compiler.lua
+++ b/lib/lace/compiler.lua
@@ -2,7 +2,7 @@
--
-- Lua Access Control Engine - Ruleset compiler
--
--- Copyright 2012 Daniel Silverstone <dsilvers@digital-scurf.org>
+-- Copyright 2012,2015 Daniel Silverstone <dsilvers@digital-scurf.org>
--
-- For licence terms, see COPYING
--
@@ -152,7 +152,7 @@ local function internal_compile_ruleset(compcontext, sourcename, content, suppre
-- in which case use the default
-- There's no unconditional result and no default, fake up a default and
-- then use it.
- if not suppress_default and not uncond and not result then
+ if not suppress_default and not uncond and not result and not compcontext._lace.default then
local _, nores = err.error("No result set whatsoever", {})
return false, err.augment(nores, ruleset.content, #ruleset.content.lines + 1)
end