Share every picture with everyone signed in
A profile photo, a bot's picture and a workspace's picture all come from one condition now (sharedPictureMediaSql), so a face is never blank just because its owner isn't in the viewer's rail. Anything that isn't a picture stays behind its own check.
This commit is contained in:
@@ -30,7 +30,10 @@ export default async function grabTaskMediaFile({
|
||||
|
||||
if (!link?.task_id) return null;
|
||||
|
||||
const access = taskScopesSql({ role: await grabCrewRole({ user_id }), user_id });
|
||||
const access = taskScopesSql({
|
||||
role: await grabCrewRole({ user_id }),
|
||||
user_id,
|
||||
});
|
||||
|
||||
const task = (
|
||||
await BunSQLite.sql<{ id: number }>({
|
||||
|
||||
Reference in New Issue
Block a user