MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / hasFilePermission

Method hasFilePermission

src/Ui/UiWebsocket.py:127–129  ·  view source on GitHub ↗
(self, inner_path)

Source from the content-addressed store, hash-verified

125 return True
126
127 def hasFilePermission(self, inner_path):
128 valid_signers = self.site.content_manager.getValidSigners(inner_path)
129 return self.site.settings["own"] or self.user.getAuthAddress(self.site.address) in valid_signers
130
131 # Event in a channel
132 def event(self, channel, *params):

Callers 4

actionSiteSignMethod · 0.95
actionFileWriteMethod · 0.95
actionFileDeleteMethod · 0.95
actionFileDeleteMethod · 0.80

Calls 2

getValidSignersMethod · 0.80
getAuthAddressMethod · 0.80

Tested by

no test coverage detected