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:
@@ -35,7 +35,12 @@ export default async function grabBotFileMedia({
|
||||
const role = await grabCrewRole({ user_id });
|
||||
const reaches =
|
||||
file.scope == "workspace"
|
||||
? Boolean(await grabUserWorkspace({ workspace_id: file.owner_id!, user_id }))
|
||||
? Boolean(
|
||||
await grabUserWorkspace({
|
||||
workspace_id: file.owner_id!,
|
||||
user_id,
|
||||
}),
|
||||
)
|
||||
: role == "super_admin"
|
||||
? true
|
||||
: Boolean(await grabUserBot({ bot_id: file.owner_id!, user_id }));
|
||||
|
||||
Reference in New Issue
Block a user