mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 03:06:41 +00:00
don't provide the "overwrite" button if the file is readonly to you
This commit is contained in:
parent
85b972a4c3
commit
35aea346d3
@ -334,7 +334,7 @@ class Directory(rend.Page):
|
|||||||
|
|
||||||
def render_overwrite(self, ctx, data):
|
def render_overwrite(self, ctx, data):
|
||||||
name, target = data
|
name, target = data
|
||||||
if IMutableFileNode.providedBy(target):
|
if IMutableFileNode.providedBy(target) and not target.is_readonly():
|
||||||
overwrite = T.form(action=".", method="post",
|
overwrite = T.form(action=".", method="post",
|
||||||
enctype="multipart/form-data")[
|
enctype="multipart/form-data")[
|
||||||
T.fieldset[
|
T.fieldset[
|
||||||
|
Loading…
Reference in New Issue
Block a user