skapi-js 1.0.14 → 1.0.15
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/user.js +2 -2
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
package/js/methods/user.js
CHANGED
|
@@ -368,8 +368,8 @@ export async function signup(form, option) {
|
|
|
368
368
|
if (admin_creating_account) {
|
|
369
369
|
params.owner = this.__user.user_id;
|
|
370
370
|
}
|
|
371
|
-
else {
|
|
372
|
-
if (
|
|
371
|
+
else if (!is_admin) {
|
|
372
|
+
if (params.access_group) {
|
|
373
373
|
throw new SkapiError('Only admins can set "access_group" parameter.', { code: 'INVALID_PARAMETER' });
|
|
374
374
|
}
|
|
375
375
|
await this.logout();
|
package/package.json
CHANGED