You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query:="select coalesce(uid_owner, '') as uid_owner, coalesce(uid_initiator, '') as uid_initiator, coalesce(share_with, '') as share_with, coalesce(fileid_prefix, '') as fileid_prefix, coalesce(item_source, '') as item_source, coalesce(item_type, '') as item_type, stime, permissions, share_type, accepted, coalesce(tr.rejected_by, '') as rejected_by FROM oc_share ts LEFT JOIN oc_share_acl tr ON (ts.id = tr.id AND tr.rejected_by = ?) WHERE (orphan = 0 or orphan IS NULL) AND ts.id=? "
390
+
query:=`select coalesce(uid_owner, '') as uid_owner, coalesce(uid_initiator, '') as uid_initiator, coalesce(share_with, '') as share_with,
391
+
coalesce(fileid_prefix, '') as fileid_prefix, coalesce(item_source, '') as item_source, coalesce(item_type, '') as item_type,
392
+
stime, permissions, share_type, coalesce(tr.state, 0) as state
393
+
FROM oc_share ts LEFT JOIN oc_share_status tr ON (ts.id = tr.id AND tr.recipient = ?)
394
+
WHERE (orphan = 0 or orphan IS NULL) AND ts.id=?`
395
395
iflen(user.Groups) >0 {
396
-
query+="AND ((share_with=? AND share_type = 0) OR (share_type = 1 AND share_with in (?"+strings.Repeat(",?", len(user.Groups)-1) +")))"
396
+
query+="AND ((share_with=? AND share_type = 0) OR (share_type = 1 AND share_with in (?"+strings.Repeat(",?", len(user.Groups)-1) +")))"
query:="select coalesce(uid_owner, '') as uid_owner, coalesce(uid_initiator, '') as uid_initiator, coalesce(share_with, '') as share_with, coalesce(fileid_prefix, '') as fileid_prefix, coalesce(item_source, '') as item_source, coalesce(item_type, '') as item_type, ts.id, stime, permissions, share_type, accepted, coalesce(tr.rejected_by, '') as rejected_by FROM oc_share ts LEFT JOIN oc_share_acl tr ON (ts.id = tr.id AND tr.rejected_by = ?) WHERE (orphan = 0 or orphan IS NULL) AND uid_owner=? AND fileid_prefix=? AND item_source=? AND share_type=? AND share_with=? "
420
+
query:=`select coalesce(uid_owner, '') as uid_owner, coalesce(uid_initiator, '') as uid_initiator, coalesce(share_with, '') as share_with,
421
+
coalesce(fileid_prefix, '') as fileid_prefix, coalesce(item_source, '') as item_source, coalesce(item_type, '') as item_type,
422
+
ts.id, stime, permissions, share_type, coalesce(tr.state, 0) as state
423
+
FROM oc_share ts LEFT JOIN oc_share_status tr ON (ts.id = tr.id AND tr.recipient = ?)
424
+
WHERE (orphan = 0 or orphan IS NULL) AND uid_owner=? AND fileid_prefix=? AND item_source=? AND share_type=? AND share_with=?`
421
425
iflen(user.Groups) >0 {
422
-
query+="AND ((share_with=? AND share_type = 0) OR (share_type = 1 AND share_with in (?"+strings.Repeat(",?", len(user.Groups)-1) +")))"
426
+
query+="AND ((share_with=? AND share_type = 0) OR (share_type = 1 AND share_with in (?"+strings.Repeat(",?", len(user.Groups)-1) +")))"
0 commit comments