@akemona-org/strapi-admin 3.12.4 → 3.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/components/FormBloc/index.js +3 -3
- package/admin/src/components/HeaderSearch/index.js +2 -2
- package/admin/src/components/IntlInput/index.js +2 -2
- package/admin/src/components/LeftMenu/LeftMenuFooter/Wrapper.js +3 -1
- package/admin/src/components/LeftMenu/LeftMenuHeader/index.js +3 -3
- package/admin/src/components/LeftMenu/LeftMenuLink/LeftMenuIcon.js +3 -1
- package/admin/src/components/LeftMenu/LeftMenuLink/LeftMenuLinkContent.js +3 -3
- package/admin/src/components/LeftMenu/LeftMenuLink/NotificationCount.js +3 -3
- package/admin/src/components/LeftMenu/LeftMenuLink/index.js +2 -2
- package/admin/src/components/LeftMenu/LeftMenuLinkHeader/index.js +2 -2
- package/admin/src/components/LeftMenu/LeftMenuLinkSection/index.js +3 -3
- package/admin/src/components/PageTitle/index.js +3 -3
- package/admin/src/components/Roles/ButtonWithNumber/index.js +2 -2
- package/admin/src/components/Roles/ConditionsButton/index.js +2 -2
- package/admin/src/components/Roles/ConditionsModal/ActionRow/index.js +3 -3
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/ClearIndicator.js +2 -2
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/CustomDropdownIndicator.js +2 -2
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/IndicatorSeparator.js +3 -1
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/MenuList/SubUl.js +2 -2
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/MenuList/index.js +2 -2
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/SingleValue.js +2 -2
- package/admin/src/components/Roles/ConditionsModal/ConditionsSelect/index.js +3 -3
- package/admin/src/components/Roles/ConditionsModal/index.js +3 -3
- package/admin/src/components/Roles/ContentTypeCollapse/Collapse/index.js +3 -3
- package/admin/src/components/Roles/ContentTypeCollapse/CollapsePropertyMatrix/ActionRow/index.js +3 -3
- package/admin/src/components/Roles/ContentTypeCollapse/CollapsePropertyMatrix/Header/index.js +2 -2
- package/admin/src/components/Roles/ContentTypeCollapse/CollapsePropertyMatrix/SubActionRow/index.js +3 -3
- package/admin/src/components/Roles/ContentTypeCollapse/CollapsePropertyMatrix/index.js +3 -3
- package/admin/src/components/Roles/ContentTypeCollapse/index.js +3 -3
- package/admin/src/components/Roles/ContentTypeCollapses/index.js +2 -2
- package/admin/src/components/Roles/ContentTypes/index.js +2 -2
- package/admin/src/components/Roles/Curve/index.js +3 -3
- package/admin/src/components/Roles/EmptyRole/index.js +2 -2
- package/admin/src/components/Roles/GlobalActions/index.js +2 -2
- package/admin/src/components/Roles/PermissionsDataManagerProvider/index.js +2 -2
- package/admin/src/components/Roles/PluginsAndSettings/Row/index.js +3 -3
- package/admin/src/components/Roles/PluginsAndSettings/SubCategory/index.js +2 -2
- package/admin/src/components/Roles/PluginsAndSettings/index.js +2 -2
- package/admin/src/components/Roles/RequiredSign/index.js +3 -1
- package/admin/src/components/Roles/RoleForm/NameInput.js +3 -1
- package/admin/src/components/Roles/RoleForm/RoleForm.js +2 -2
- package/admin/src/components/Roles/RoleList/RoleRow.js +2 -2
- package/admin/src/components/Roles/RowLabelWithCheckbox/index.js +3 -3
- package/admin/src/components/Roles/Tabs/index.js +2 -2
- package/admin/src/components/Settings/Header/index.js +3 -3
- package/admin/src/components/SettingsPageTitle/index.js +2 -2
- package/admin/src/components/SizedInput/index.js +2 -2
- package/admin/src/components/UpgradePlanModal/components/Option/index.js +2 -2
- package/admin/src/components/UpgradePlanModal/index.js +2 -2
- package/admin/src/components/Users/Filter/index.js +2 -2
- package/admin/src/components/Users/FilterPicker/Button.js +2 -2
- package/admin/src/components/Users/FilterPicker/Card/index.js +2 -2
- package/admin/src/components/Users/FilterPicker/index.js +2 -2
- package/admin/src/components/Users/Footer/index.js +2 -2
- package/admin/src/components/Users/LinkNotification/Envelope.js +3 -3
- package/admin/src/components/Users/LinkNotification/index.js +2 -2
- package/admin/src/components/Users/MagicLink/index.js +2 -2
- package/admin/src/components/Users/RoleSettingsModalSection/RolesSelectComponent.js +2 -2
- package/admin/src/components/Users/RoleSettingsModalSection/index.js +2 -2
- package/admin/src/components/Users/SelectRoles/ClearIndicator.js +2 -2
- package/admin/src/components/Users/SelectRoles/DropdownIndicator.js +2 -2
- package/admin/src/components/Users/SelectRoles/IndicatorSeparator.js +3 -1
- package/admin/src/components/Users/SelectRoles/MultiValueContainer.js +2 -2
- package/admin/src/components/Users/SelectRoles/index.js +2 -2
- package/admin/src/components/Users/SortPicker/Button.js +2 -2
- package/admin/src/components/Users/SortPicker/List.js +2 -2
- package/admin/src/components/Users/SortPicker/ListItem.js +2 -2
- package/admin/src/components/Users/SortPicker/index.js +2 -2
- package/admin/src/components/Webhooks/EventInput/EventRow.js +2 -2
- package/admin/src/components/Webhooks/EventInput/index.js +2 -2
- package/admin/src/components/Webhooks/HeadersInput/index.js +2 -2
- package/admin/src/components/Webhooks/TriggerContainer/index.js +2 -2
- package/admin/src/containers/ApplicationInfosPage/components/Detail/index.js +2 -2
- package/admin/src/containers/ApplicationInfosPage/components/InfoText/index.js +2 -2
- package/admin/src/containers/ApplicationInfosPage/components/Link/index.js +2 -2
- package/admin/src/containers/ApplicationInfosPage/index.js +2 -2
- package/admin/src/containers/AuthPage/components/AuthLink/index.js +2 -2
- package/admin/src/containers/AuthPage/components/Box/index.js +3 -3
- package/admin/src/containers/AuthPage/components/ForgotPassword/index.js +2 -2
- package/admin/src/containers/AuthPage/components/ForgotPasswordSuccess/Envelope.js +3 -3
- package/admin/src/containers/AuthPage/components/ForgotPasswordSuccess/index.js +2 -2
- package/admin/src/containers/AuthPage/components/Input/index.js +2 -2
- package/admin/src/containers/AuthPage/components/Login/BaseLogin.js +2 -2
- package/admin/src/containers/AuthPage/components/Login/index.js +2 -2
- package/admin/src/containers/AuthPage/components/Logo/index.js +3 -1
- package/admin/src/containers/AuthPage/components/Oops/index.js +2 -2
- package/admin/src/containers/AuthPage/components/Register/CustomLabel.js +2 -2
- package/admin/src/containers/AuthPage/components/Register/index.js +3 -3
- package/admin/src/containers/AuthPage/components/ResetPassword/index.js +2 -2
- package/admin/src/containers/AuthPage/index.js +2 -2
- package/admin/src/containers/HomePage/BlogPost.js +2 -2
- package/admin/src/containers/HomePage/SocialLink.js +2 -2
- package/admin/src/containers/InstalledPluginsPage/Row.js +2 -2
- package/admin/src/containers/InstalledPluginsPage/index.js +2 -2
- package/admin/src/containers/LeftMenu/Loader.js +2 -2
- package/admin/src/containers/LeftMenu/index.js +2 -2
- package/admin/src/containers/LeftMenu/useMenuSections.js +2 -3
- package/admin/src/containers/MarketplacePage/MarketplaceBanner/index.js +2 -2
- package/admin/src/containers/MarketplacePage/index.js +2 -2
- package/admin/src/containers/NewNotification/Notification/index.js +2 -2
- package/admin/src/containers/NewNotification/index.js +2 -2
- package/admin/src/containers/NotFoundPage/index.js +3 -1
- package/admin/src/containers/Onboarding/index.js +2 -2
- package/admin/src/containers/PermissionsManager/index.js +2 -2
- package/admin/src/containers/PrivateRoute/index.js +3 -3
- package/admin/src/containers/ProfilePage/index.js +2 -2
- package/admin/src/containers/Roles/CreatePage/index.js +2 -2
- package/admin/src/containers/Roles/EditPage/index.js +2 -2
- package/admin/src/containers/Roles/ListPage/index.js +2 -2
- package/admin/src/containers/Roles/ProtectedEditPage/index.js +2 -2
- package/admin/src/containers/Roles/ProtectedListPage/index.js +3 -3
- package/admin/src/containers/SettingsHeaderSearchContextProvider/index.js +2 -2
- package/admin/src/containers/SettingsPage/components/ApplicationDetailLink/index.js +2 -2
- package/admin/src/containers/SettingsPage/components/SettingDispatcher/index.js +2 -2
- package/admin/src/containers/Theme/index.js +2 -2
- package/admin/src/containers/Users/EditPage/index.js +2 -2
- package/admin/src/containers/Users/ListPage/Header.js +3 -3
- package/admin/src/containers/Users/ListPage/ModalForm.js +2 -2
- package/admin/src/containers/Users/ListPage/index.js +2 -2
- package/admin/src/containers/Users/ProtectedEditPage/index.js +2 -2
- package/admin/src/containers/Users/ProtectedListPage/index.js +3 -3
- package/admin/src/containers/Webhooks/ProtectedCreateView/index.js +3 -3
- package/admin/src/containers/Webhooks/ProtectedEditView/index.js +3 -3
- package/admin/src/containers/Webhooks/ProtectedListView/index.js +3 -3
- package/admin/src/contexts/MarketPlace/index.js +2 -2
- package/admin/src/utils/MiddlewareApi.js +1 -0
- package/controllers/authentication.js +2 -3
- package/middlewares/auth/index.js +2 -3
- package/package.json +4 -4
|
@@ -15,7 +15,7 @@ import useChangeLanguage from '../LanguageProvider/hooks/useChangeLanguage';
|
|
|
15
15
|
import ProfilePageLabel from './components';
|
|
16
16
|
import { form, schema } from './utils';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
function ProfilePage() {
|
|
19
19
|
const changeLanguage = useChangeLanguage();
|
|
20
20
|
const { formatMessage } = useIntl();
|
|
21
21
|
|
|
@@ -165,6 +165,6 @@ const ProfilePage = () => {
|
|
|
165
165
|
<BaselineAlignment bottom size="80px" />
|
|
166
166
|
</>
|
|
167
167
|
);
|
|
168
|
-
}
|
|
168
|
+
}
|
|
169
169
|
|
|
170
170
|
export default ProfilePage;
|
|
@@ -12,7 +12,7 @@ import { Permissions, RoleForm } from '../../../components/Roles';
|
|
|
12
12
|
import { useFetchRole, useFetchPermissionsLayout } from '../../../hooks';
|
|
13
13
|
import schema from './utils/schema';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
function EditPage() {
|
|
16
16
|
const { formatMessage } = useIntl();
|
|
17
17
|
const { emitEvent, settingsBaseURL } = useGlobalContext();
|
|
18
18
|
const {
|
|
@@ -167,6 +167,6 @@ const EditPage = () => {
|
|
|
167
167
|
</Formik>
|
|
168
168
|
</>
|
|
169
169
|
);
|
|
170
|
-
}
|
|
170
|
+
}
|
|
171
171
|
|
|
172
172
|
export default EditPage;
|
|
@@ -19,7 +19,7 @@ import { useRolesList, useSettingsHeaderSearchContext } from '../../../hooks';
|
|
|
19
19
|
import UpgradePlanModal from '../../../components/UpgradePlanModal';
|
|
20
20
|
import BaselineAlignment from './BaselineAlignment';
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
function RoleListPage() {
|
|
23
23
|
const { formatMessage } = useIntl();
|
|
24
24
|
const { push } = useHistory();
|
|
25
25
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -149,6 +149,6 @@ const RoleListPage = () => {
|
|
|
149
149
|
<UpgradePlanModal isOpen={isOpen} onToggle={handleToggle} />
|
|
150
150
|
</>
|
|
151
151
|
);
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
|
|
154
154
|
export default RoleListPage;
|
|
@@ -4,7 +4,7 @@ import { Redirect } from 'react-router-dom';
|
|
|
4
4
|
import adminPermissions from '../../../permissions';
|
|
5
5
|
import EditPage from '../EditPage';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function ProtectedEditPage() {
|
|
8
8
|
const permissions = useMemo(() => {
|
|
9
9
|
return {
|
|
10
10
|
read: adminPermissions.settings.roles.read,
|
|
@@ -26,6 +26,6 @@ const ProtectedEditPage = () => {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
return <EditPage />;
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
31
|
export default ProtectedEditPage;
|
|
@@ -3,10 +3,10 @@ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
|
3
3
|
import adminPermissions from '../../../permissions';
|
|
4
4
|
import ListPage from '../ListPage';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
<CheckPagePermissions permissions={adminPermissions.settings.roles.main}>
|
|
6
|
+
function ProtectedListPage() {
|
|
7
|
+
return <CheckPagePermissions permissions={adminPermissions.settings.roles.main}>
|
|
8
8
|
<ListPage />
|
|
9
9
|
</CheckPagePermissions>
|
|
10
|
-
|
|
10
|
+
}
|
|
11
11
|
|
|
12
12
|
export default ProtectedListPage;
|
|
@@ -2,13 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import SettingsHeaderSearchContext from '../../contexts/SettingsHeaderSearchContext';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function SettingsHeaderSearchContextProvider({ children, ...rest }) {
|
|
6
6
|
return (
|
|
7
7
|
<SettingsHeaderSearchContext.Provider value={rest.value}>
|
|
8
8
|
{children}
|
|
9
9
|
</SettingsHeaderSearchContext.Provider>
|
|
10
10
|
);
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
|
|
13
13
|
SettingsHeaderSearchContextProvider.propTypes = {
|
|
14
14
|
children: PropTypes.node.isRequired,
|
|
@@ -7,7 +7,7 @@ import Link from './Link';
|
|
|
7
7
|
import Notif from './Notif';
|
|
8
8
|
import Wrapper from './Wrapper';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
function ApplicationDetailLink() {
|
|
11
11
|
const { shouldUpdateStrapi } = useGlobalContext();
|
|
12
12
|
|
|
13
13
|
return (
|
|
@@ -21,6 +21,6 @@ const ApplicationDetailLink = () => {
|
|
|
21
21
|
</Link>
|
|
22
22
|
</Wrapper>
|
|
23
23
|
);
|
|
24
|
-
}
|
|
24
|
+
}
|
|
25
25
|
|
|
26
26
|
export default memo(ApplicationDetailLink);
|
|
@@ -4,7 +4,7 @@ import { get } from 'lodash';
|
|
|
4
4
|
import { useParams } from 'react-router-dom';
|
|
5
5
|
import PageTitle from '../../../../components/SettingsPageTitle';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function SettingDispatcher() {
|
|
8
8
|
const { plugins } = useGlobalContext();
|
|
9
9
|
const { pluginId } = useParams();
|
|
10
10
|
|
|
@@ -22,6 +22,6 @@ const SettingDispatcher = () => {
|
|
|
22
22
|
<Compo settingsBaseURL="/settings" />
|
|
23
23
|
</>
|
|
24
24
|
);
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
|
|
27
27
|
export default memo(SettingDispatcher);
|
|
@@ -3,9 +3,9 @@ import { ThemeProvider } from 'styled-components';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import themes from '../../themes';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function Theme({ children }) {
|
|
7
7
|
return <ThemeProvider theme={themes}>{children}</ThemeProvider>;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
|
|
10
10
|
Theme.propTypes = {
|
|
11
11
|
children: PropTypes.node.isRequired,
|
|
@@ -20,7 +20,7 @@ import { useSettingsForm } from '../../../hooks';
|
|
|
20
20
|
import { editValidation } from '../../../validations/users';
|
|
21
21
|
import form from './utils/form';
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function EditPage({ canUpdate }) {
|
|
24
24
|
const { settingsBaseURL } = useGlobalContext();
|
|
25
25
|
const { formatMessage } = useIntl();
|
|
26
26
|
const {
|
|
@@ -133,7 +133,7 @@ const EditPage = ({ canUpdate }) => {
|
|
|
133
133
|
<BaselineAlignment bottom size="80px" />
|
|
134
134
|
</>
|
|
135
135
|
);
|
|
136
|
-
}
|
|
136
|
+
}
|
|
137
137
|
|
|
138
138
|
EditPage.propTypes = {
|
|
139
139
|
canUpdate: PropTypes.bool.isRequired,
|
|
@@ -5,7 +5,7 @@ import { Button } from '@buffetjs/core';
|
|
|
5
5
|
import { Header as HeaderCompo } from '@buffetjs/custom';
|
|
6
6
|
import { Envelope } from '@buffetjs/icons';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function Header({
|
|
9
9
|
canCreate,
|
|
10
10
|
canDelete,
|
|
11
11
|
canRead,
|
|
@@ -14,7 +14,7 @@ const Header = ({
|
|
|
14
14
|
isLoading,
|
|
15
15
|
onClickAddUser,
|
|
16
16
|
onClickDelete,
|
|
17
|
-
})
|
|
17
|
+
}) {
|
|
18
18
|
const { formatMessage } = useGlobalContext();
|
|
19
19
|
const tradBaseId = 'Settings.permissions.users.listview.';
|
|
20
20
|
const headerDescriptionSuffix =
|
|
@@ -51,7 +51,7 @@ const Header = ({
|
|
|
51
51
|
/* eslint-enable indent */
|
|
52
52
|
|
|
53
53
|
return <HeaderCompo {...headerProps} isLoading={isLoading} />;
|
|
54
|
-
}
|
|
54
|
+
}
|
|
55
55
|
|
|
56
56
|
Header.defaultProps = {
|
|
57
57
|
canCreate: false,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import stepper from './stepper';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function ModalForm({ isOpen, onClosed, onToggle }) {
|
|
13
13
|
const [currentStep, setStep] = useState('create');
|
|
14
14
|
// Little trick to focus the first input
|
|
15
15
|
// Without this the focus is lost
|
|
@@ -91,7 +91,7 @@ const ModalForm = ({ isOpen, onClosed, onToggle }) => {
|
|
|
91
91
|
</ModalFooter>
|
|
92
92
|
</Modal>
|
|
93
93
|
);
|
|
94
|
-
}
|
|
94
|
+
}
|
|
95
95
|
|
|
96
96
|
ModalForm.defaultProps = {
|
|
97
97
|
onClosed: () => {},
|
|
@@ -20,7 +20,7 @@ import getFilters from './utils/getFilters';
|
|
|
20
20
|
import init from './init';
|
|
21
21
|
import { initialState, reducer } from './reducer';
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function ListPage() {
|
|
24
24
|
const {
|
|
25
25
|
isLoading: isLoadingForPermissions,
|
|
26
26
|
allowedActions: { canCreate, canDelete, canRead, canUpdate },
|
|
@@ -284,6 +284,6 @@ const ListPage = () => {
|
|
|
284
284
|
/>
|
|
285
285
|
</div>
|
|
286
286
|
);
|
|
287
|
-
}
|
|
287
|
+
}
|
|
288
288
|
|
|
289
289
|
export default ListPage;
|
|
@@ -5,7 +5,7 @@ import { get } from 'lodash';
|
|
|
5
5
|
import adminPermissions from '../../../permissions';
|
|
6
6
|
import EditPage from '../EditPage';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function ProtectedEditPage() {
|
|
9
9
|
const permissions = useMemo(() => {
|
|
10
10
|
return {
|
|
11
11
|
read: adminPermissions.settings.users.read,
|
|
@@ -40,6 +40,6 @@ const ProtectedEditPage = () => {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
return <EditPage canUpdate={canUpdate} />;
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
44
|
|
|
45
45
|
export default ProtectedEditPage;
|
|
@@ -3,10 +3,10 @@ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
|
3
3
|
import adminPermissions from '../../../permissions';
|
|
4
4
|
import ListPage from '../ListPage';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
<CheckPagePermissions permissions={adminPermissions.settings.users.main}>
|
|
6
|
+
function ProtectedListPage() {
|
|
7
|
+
return <CheckPagePermissions permissions={adminPermissions.settings.users.main}>
|
|
8
8
|
<ListPage />
|
|
9
9
|
</CheckPagePermissions>
|
|
10
|
-
|
|
10
|
+
}
|
|
11
11
|
|
|
12
12
|
export default ProtectedListPage;
|
|
@@ -3,10 +3,10 @@ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
|
3
3
|
import adminPermissions from '../../../permissions';
|
|
4
4
|
import EditView from '../EditView';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
<CheckPagePermissions permissions={adminPermissions.settings.webhooks.create}>
|
|
6
|
+
function ProtectedCreateView() {
|
|
7
|
+
return <CheckPagePermissions permissions={adminPermissions.settings.webhooks.create}>
|
|
8
8
|
<EditView />
|
|
9
9
|
</CheckPagePermissions>
|
|
10
|
-
|
|
10
|
+
}
|
|
11
11
|
|
|
12
12
|
export default ProtectedCreateView;
|
|
@@ -3,10 +3,10 @@ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
|
3
3
|
import adminPermissions from '../../../permissions';
|
|
4
4
|
import EditView from '../EditView';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
<CheckPagePermissions permissions={adminPermissions.settings.webhooks.update}>
|
|
6
|
+
function ProtectedEditView() {
|
|
7
|
+
return <CheckPagePermissions permissions={adminPermissions.settings.webhooks.update}>
|
|
8
8
|
<EditView />
|
|
9
9
|
</CheckPagePermissions>
|
|
10
|
-
|
|
10
|
+
}
|
|
11
11
|
|
|
12
12
|
export default ProtectedEditView;
|
|
@@ -3,10 +3,10 @@ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
|
3
3
|
import adminPermissions from '../../../permissions';
|
|
4
4
|
import ListView from '../ListView';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
<CheckPagePermissions permissions={adminPermissions.settings.webhooks.main}>
|
|
6
|
+
function ProtectedListView() {
|
|
7
|
+
return <CheckPagePermissions permissions={adminPermissions.settings.webhooks.main}>
|
|
8
8
|
<ListView />
|
|
9
9
|
</CheckPagePermissions>
|
|
10
|
-
|
|
10
|
+
}
|
|
11
11
|
|
|
12
12
|
export default ProtectedListView;
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
|
|
4
4
|
const MarketPlaceContext = createContext({});
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function MarketPlaceContextProvider({ children, ...rest }) {
|
|
7
7
|
return <MarketPlaceContext.Provider value={rest}>{children}</MarketPlaceContext.Provider>;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
|
|
10
10
|
const useMarketPlaceContext = () => useContext(MarketPlaceContext);
|
|
11
11
|
|
|
@@ -76,9 +76,8 @@ module.exports = {
|
|
|
76
76
|
|
|
77
77
|
const { registrationToken } = ctx.request.query;
|
|
78
78
|
|
|
79
|
-
const registrationInfo =
|
|
80
|
-
registrationToken
|
|
81
|
-
);
|
|
79
|
+
const registrationInfo =
|
|
80
|
+
await strapi.admin.services.user.findRegistrationInfo(registrationToken);
|
|
82
81
|
|
|
83
82
|
if (!registrationInfo) {
|
|
84
83
|
return ctx.badRequest('Invalid registrationToken');
|
|
@@ -25,9 +25,8 @@ module.exports = (strapi) => ({
|
|
|
25
25
|
|
|
26
26
|
ctx.state.admin = admin;
|
|
27
27
|
ctx.state.user = admin;
|
|
28
|
-
ctx.state.userAbility =
|
|
29
|
-
admin
|
|
30
|
-
);
|
|
28
|
+
ctx.state.userAbility =
|
|
29
|
+
await strapi.admin.services.permission.engine.generateUserAbility(admin);
|
|
31
30
|
ctx.state.isAuthenticatedAdmin = true;
|
|
32
31
|
return next();
|
|
33
32
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.13.1",
|
|
7
7
|
"description": "Strapi Admin",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@akemona-org/strapi-helper-plugin": "3.
|
|
21
|
-
"@akemona-org/strapi-utils": "3.
|
|
20
|
+
"@akemona-org/strapi-helper-plugin": "3.13.1",
|
|
21
|
+
"@akemona-org/strapi-utils": "3.13.1",
|
|
22
22
|
"@babel/core": "^7.14.0",
|
|
23
23
|
"@babel/plugin-proposal-async-generator-functions": "^7.13.15",
|
|
24
24
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"webpack-bundle-analyzer": "4.4.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "8343ec802662d12cb09de4196583f1862d808de5"
|
|
129
129
|
}
|