mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-04 10:52:18 +03:00
Merge pull request #5009 from urbit/mp/landscape/loosen
landscape: loosen owner check in popover
This commit is contained in:
commit
30cce281ab
@ -56,8 +56,8 @@ export function parentPath(path: string) {
|
||||
* string -> enabled feed
|
||||
*/
|
||||
export function getFeedPath(association: Association): string | null | undefined {
|
||||
const { metadata } = association;
|
||||
if(metadata.config && 'group' in metadata?.config && metadata.config?.group) {
|
||||
const { metadata = { config: {} } } = association;
|
||||
if (metadata.config && 'group' in metadata?.config && metadata.config?.group) {
|
||||
if ('resource' in metadata.config.group) {
|
||||
return metadata.config.group.resource;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ export function PopoverRoutes(
|
||||
|
||||
const groupSize = props.group.members.size;
|
||||
|
||||
const owner = resourceFromPath(props.association.group).ship.slice(1) === window.ship;
|
||||
const owner = resourceFromPath(props.association?.group ?? '~zod/group').ship.slice(1) === window.ship;
|
||||
|
||||
const admin = props.group?.tags?.role?.admin.has(window.ship) || false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user