Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#1927 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Dev to hotfix
  • Loading branch information
KelvinTegelaar committed Nov 29, 2023
2 parents 70d58ce + e387092 commit 21672d3
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 31 deletions.
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.0
4.7.3
8 changes: 6 additions & 2 deletions src/data/standards.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,13 @@
},
{
"cat": "AAD",
"name": "standards.EnableAppConsentRequests",
"name": "standards.EnableAppConsentRequests.Enabled",
"helpText": "Enables App consent admin requests for the tenant via the GA role. Does not overwrite existing reviewer settings",
"addedComponent": null,
"addedComponent": {
"type": "AdminRolesMultiSelect",
"label": "App Consent Reviewer Roles",
"name": "standards.EnableAppConsentRequests.ReviewerRoles"
},
"label": "Enable App consent admin requests"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/views/email-exchange/administration/AddContact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const AddContact = () => {
onSubmit={onSubmit}
render={({ handleSubmit, submitting, values }) => {
return (
<CForm onSubmit={handleSubmit}>
<CForm onSubmit={handleSubmit} autoComplete="off">
<CRow>
<CCol md={8}>
<RFFCFormInput type="text" name="displayName" label="Display Name" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/identity/administration/Deleted.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Offcanvas = (row, rowIndex, formatExtraData) => {
color: 'info',
modal: true,
modalUrl: `/api/ExecRestoreDeleted?TenantFilter=${tenant.defaultDomainName}&ID=${row.id}`,
modalMessage: 'Are you sure you want to create a Temporary Access Pass?',
modalMessage: 'Are you sure you want to restore the user?',
},
]}
placement="end"
Expand Down
2 changes: 1 addition & 1 deletion src/views/identity/administration/UserActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function UserActions({ tenantDomain, userId, userEmail, className
}

const editLink = `/identity/administration/users/edit?tenantDomain=${tenantDomain}&userId=${userId}`
const editMailboxLink = `/email/administration/edit-mailbox-permissions?tenantDomain=${tenantDomain}&userId=${userId}`
const editMailboxLink = `/email/administration/edit-mailbox-permissions?tenantDomain=${tenantDomain}&userId=${userEmail}`

const actions = [
{
Expand Down
48 changes: 33 additions & 15 deletions src/views/tenant/administration/TenantOffboardingWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CippWizard } from 'src/components/layout'
import PropTypes from 'prop-types'
import { RFFCFormCheck, RFFCFormInput, RFFCFormSwitch, RFFSelectSearch } from 'src/components/forms'
import { TenantSelector } from 'src/components/utilities'
import { useLazyGenericPostRequestQuery } from 'src/store/api/app'
import { useLazyGenericGetRequestQuery, useLazyGenericPostRequestQuery } from 'src/store/api/app'

const Error = ({ name }) => (
<Field
Expand Down Expand Up @@ -38,6 +38,9 @@ const TenantOffboardingWizard = () => {
const shippedValues = {
TenantFilter: tenantDomain,
RemoveCSPGuestUsers: values.RemoveCSPGuestUsers ? values.RemoveCSPGuestUsers : '',
RemoveCSPnotificationContacts: values.RemoveCSPnotificationContacts
? values.RemoveCSPnotificationContacts
: '',
RemoveMultitenantCSPApps: values.RemoveMultitenantCSPApps
? values.RemoveMultitenantCSPApps
: '',
Expand Down Expand Up @@ -82,17 +85,27 @@ const TenantOffboardingWizard = () => {
label="Remove all guest users originating from the CSP tenant."
/>
<RFFCFormSwitch
name="RemoveMultitenantCSPApps"
label="Remove all multitenant applications originating from CSP tenant (including CIPP-SAM)."
/>
<RFFCFormSwitch
name="TerminateGDAP"
label="Terminate all active GDAP relationships (will send email to tenant admins and contacts)."
/>
<RFFCFormSwitch
name="TerminateContract"
label="Terminate contract relationship (reseller, etc)."
name="RemoveCSPnotificationContacts"
label="Remove all notification contacts originating from the CSP tenant (technical,security,marketing notifications)."
/>
<center>
<CCallout color="danger">
These actions will terminate all delegated access to the customer tenant!
<hr className="my-4" />
<RFFCFormSwitch
name="RemoveMultitenantCSPApps"
label="Remove all multitenant applications originating from CSP tenant (including CIPP-SAM)."
/>
<RFFCFormSwitch
name="TerminateGDAP"
label="Terminate all active GDAP relationships (will send email to tenant admins and contacts)."
/>
<RFFCFormSwitch
name="TerminateContract"
label="Terminate contract relationship (reseller, etc)."
/>
</CCallout>
</center>
</CCol>
</CRow>
</div>
Expand Down Expand Up @@ -131,10 +144,6 @@ const TenantOffboardingWizard = () => {
<>
<CRow>
<CCol md={{ span: 6, offset: 3 }}>
<CCallout color="danger">
<FontAwesomeIcon icon={faExclamationTriangle} color="danger" />
These actions are irreversible!
</CCallout>
<CListGroup flush>
<CListGroupItem className="d-flex justify-content-between align-items-center">
<h5 className="mb-0">Selected Tenant:</h5>
Expand All @@ -147,6 +156,15 @@ const TenantOffboardingWizard = () => {
<CRow>
<CCol md={{ span: 6, offset: 3 }}>
<CListGroup flush>
<CListGroupItem className="d-flex justify-content-between align-items-center">
Remove all notification contacts originating from the CSP tenant
(technical,security,marketing notifications)
<FontAwesomeIcon
color="#f77f00"
size="lg"
icon={props.values.RemoveCSPnotificationContacts ? faCheck : faTimes}
/>
</CListGroupItem>
<CListGroupItem className="d-flex justify-content-between align-items-center">
Remove all guest users originating from the CSP tenant
<FontAwesomeIcon
Expand Down
31 changes: 22 additions & 9 deletions src/views/tenant/standards/ListAppliedStandards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Skeleton from 'react-loading-skeleton'
import { CippTable } from 'src/components/tables'
import allStandardsList from 'src/data/standards'
import CippCodeOffCanvas from 'src/components/utilities/CippCodeOffcanvas'
import GDAPRoles from 'src/data/GDAPRoles'

const RefreshAction = () => {
const [execStandards, execStandardsResults] = useLazyGenericGetRequestQuery()
Expand Down Expand Up @@ -306,21 +307,33 @@ const ListAppliedStandards = () => {
/>
{item.addedComponent && (
<Condition when={item.name} is={true}>
{item.addedComponent.type === 'Select' ? (
{(item.addedComponent.type === 'Select' && (
<RFFCFormSelect
name={item.addedComponent.name}
className="mb-3"
label={item.addedComponent.label}
values={item.addedComponent.values}
/>
) : (
<RFFCFormInput
type="text"
className="mb-3"
name={item.addedComponent.name}
label={item.addedComponent.label}
/>
)}
)) ||
(item.addedComponent.type === 'AdminRolesMultiSelect' && (
<RFFSelectSearch
multi={true}
name={item.addedComponent.name}
className="mb-3"
label={item.addedComponent.label}
values={GDAPRoles.map((role) => ({
value: role.ObjectId,
name: role.Name,
}))}
/>
)) || (
<RFFCFormInput
type="text"
className="mb-3"
name={item.addedComponent.name}
label={item.addedComponent.label}
/>
)}
</Condition>
)}
</CCol>
Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.0
4.7.3

0 comments on commit 21672d3

Please sign in to comment.