skapi-js 1.0.50 → 1.0.51
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/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.js +1 -1
- package/js/methods/database.js +1 -1
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
package/js/methods/database.js
CHANGED
|
@@ -747,7 +747,7 @@ export async function postRecord(form, config) {
|
|
|
747
747
|
throw new SkapiError('"table.name" cannot be empty string.', { code: 'INVALID_PARAMETER' });
|
|
748
748
|
}
|
|
749
749
|
validator.specialChars(config_chkd.table.name, 'table name', true, true);
|
|
750
|
-
if (isAdmin) {
|
|
750
|
+
if (isAdmin && !config_chkd.record_id) {
|
|
751
751
|
if (config_chkd.table.access_group === 'private') {
|
|
752
752
|
throw new SkapiError('Service owner cannot write private records.', { code: 'INVALID_REQUEST' });
|
|
753
753
|
}
|