-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Regression: Permissions missing on new Room Edit and Contact Edit form #21315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 28 commits
5a24a7d
813dd40
2e72762
4148e5c
0ec0172
adb04eb
d58e9fe
095caa7
60cc1d0
9d2f736
145262e
2ddbee4
3c43b84
4a29157
84dbd72
2e4f364
1245e29
1bb4a4d
eef4d0c
b58d191
58fdaa3
81ba860
7831b52
7fe895b
fb999c1
4397453
cab6aa1
672122f
14306b4
d082592
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -890,7 +890,7 @@ Meteor.startup(() => { | |
|
|
||
| let room = Rooms.findOne({ _id: rid }, { fields: { t: 1 } }); | ||
|
|
||
| if (room?.t === 'l' && !FlowRouter.getParam('tab')) { | ||
| if (room?.t === 'l') { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @renatobecker I forgot to revert this change in the previous commit. So I'm doing it here
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we don't have a |
||
| room = Tracker.nonreactive(() => Rooms.findOne({ _id: rid })); | ||
| roomTypes.getConfig(room.t).openCustomProfileTab(this, room, room.v.username); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import React from 'react'; | ||
| import { Icon, Box } from '@rocket.chat/fuselage'; | ||
|
|
||
| import VerticalBar from '../../../components/VerticalBar'; | ||
| import { useRoute, useRouteParameter } from '../../../contexts/RouterContext'; | ||
| import { useTranslation } from '../../../contexts/TranslationContext'; | ||
| import { useRoom } from '../../../views/room/providers/RoomProvider'; | ||
| import { ContactInfo } from './ContactInfo'; | ||
| import { ContactEditWithData } from './ContactForm'; | ||
|
|
||
| const PATH = 'live'; | ||
| const ContactsContextualBar = ({ id }) => { | ||
| const t = useTranslation(); | ||
|
|
||
| const directoryRoute = useRoute(PATH); | ||
|
|
||
| const context = useRouteParameter('context'); | ||
|
|
||
| const closeContextualBar = () => { | ||
| directoryRoute.push({ id }); | ||
| }; | ||
|
|
||
| const handleContactEditBarCloseButtonClick = () => { | ||
| directoryRoute.push({ id, tab: 'contact-profile' }); | ||
| }; | ||
|
|
||
| const room = useRoom(); | ||
|
|
||
| const { v: { _id } } = room; | ||
|
|
||
| return <> | ||
| <VerticalBar.Header> | ||
| <Box flexShrink={1} flexGrow={1} withTruncatedText mi='x8'><Icon name='user' size='x20' /> {t('Contact_Info')}</Box> | ||
| <VerticalBar.Close onClick={closeContextualBar} /> | ||
| </VerticalBar.Header> | ||
| {context === 'edit' ? <ContactEditWithData id={_id} close={handleContactEditBarCloseButtonClick} /> : <ContactInfo id={_id} rid={id} route={PATH} />} | ||
| </>; | ||
| }; | ||
|
|
||
| export default ({ rid }) => <ContactsContextualBar id={rid} />; |
Uh oh!
There was an error while loading. Please reload this page.