mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-02 02:00:20 -05:00
[server][core] Do not filter out home form shared resources
This commit is contained in:
@@ -5,7 +5,6 @@ import "github.com/jackc/pgx/v5"
|
||||
func (f filesystem) SharedResources() ([]Resource, error) {
|
||||
const q = `SELECT r.*, (SELECT jsonb_agg(l.name) FROM publinks l WHERE l.root = r.id AND l.deleted IS NULL) as links FROM resources r
|
||||
WHERE grants ? $1::TEXT
|
||||
AND id <> $2::UUID
|
||||
AND deleted IS NULL
|
||||
AND (grants -> $1::TEXT -> 'p')::INTEGER <> 0
|
||||
ORDER BY grants -> $1::TEXT -> 't' DESC`
|
||||
|
||||
Reference in New Issue
Block a user