Compare commits

...

2 Commits

Author SHA1 Message Date
ed
dab377d37b v1.2.7 2022-04-16 23:44:28 +02:00
ed
f35e41baf1 allow unposting with write-only access 2022-04-16 23:35:04 +02:00
3 changed files with 5 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
# coding: utf-8
VERSION = (1, 2, 6)
VERSION = (1, 2, 7)
CODENAME = "ftp btw"
BUILD_DT = (2022, 4, 15)
BUILD_DT = (2022, 4, 16)
S_VERSION = ".".join(map(str, VERSION))
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)

View File

@@ -1675,12 +1675,12 @@ class Up2k(object):
vn, rem = vn.get_dbv(rem)
unpost = False
except:
# unpost with missing permissions? try read+write and verify with db
# unpost with missing permissions? verify with db
if not self.args.unpost:
raise Pebkac(400, "the unpost feature is disabled in server config")
unpost = True
permsets = [[True, True]]
permsets = [[False, True]]
vn, rem = self.asrv.vfs.get(vpath, uname, *permsets[0])
vn, rem = vn.get_dbv(rem)
_, _, _, _, dip, dat = self._find_from_vpath(vn.realpath, rem)

View File

@@ -1286,13 +1286,9 @@ html.y #srv_info {
color: #c83;
background: #eaeaea;
}
html.y #srv_info,
html.y #acc_info {
text-shadow: 1px 1px 0 #fff;
}
html.y #srv_info span,
html.y #acc_info span {
color: #777;
color: #666;
}
html.y #tree .ntree a+a {
background: inherit;