diff options
Diffstat (limited to 'src/Kind.zig')
| -rw-r--r-- | src/Kind.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Kind.zig b/src/Kind.zig index 619a9c53..d3feed96 100644 --- a/src/Kind.zig +++ b/src/Kind.zig @@ -275,6 +275,8 @@ pub fn openFile(p: *Pardes, id: usize, k: u8, path: []const u8) !*Pane { /// `address` with its place and its words' last values): its refusal, /// if the kind refused, in `slot.refused`. One call for both cores. pub fn reopen(p: ?*Pardes, id: usize, s: *Slot, bytes: ?[]const u8) bool { + // A replica has no kind's code: what the open says is the authority's. + if (authorityOnly("a kind's open")) return false; var cl: Call = .{ .p = p, .id = id, .slot = s }; const prev = cl.begin("open"); if (p) |core| if (core.kinds.byName(s.nameOf())) |k| { |
