Skip to content

Commit 035a9b6

Browse files
authored
Merge pull request #89 from bitholla/develop
Develop
2 parents 7e07884 + 6b2575a commit 035a9b6

File tree

4 files changed

+76
-27
lines changed

4 files changed

+76
-27
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!/bin/bash
1+
#!/bin/bash
22

33
echo "Pulling HollaEx CLI from Github..."
44
curl -L https://raw.githubusercontent.com/bitholla/hollaex-cli/master/install.sh | bash

web/package-lock.json

Lines changed: 66 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/src/containers/Admin/Plugins/Utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export const getPluginsForm = (key) => {
8080
'kyc': {
8181
id_docs_bucket: {
8282
type: 'input',
83-
label: 'ID DOCS BUCKET',
84-
placeholder: 'ID DOCS BUCKET',
83+
label: 'S3 Bucket',
84+
placeholder: '<BUCKET_NAME>:<REGION>',
8585
validate: [validateRequired, checkS3bucketUrl]
8686
},
8787
key: {

web/src/utils/token.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export const checkRole = () => {
4141
role = 'support';
4242
} else if (roles.includes('kyc')) {
4343
role = 'kyc';
44+
} else if (roles.includes('tech')) {
45+
role = 'tech';
4446
}
4547
return role;
4648
};
@@ -57,12 +59,16 @@ export const isSupport = () => {
5759
export const isSupervisor = () => {
5860
return checkRole() === 'supervisor';
5961
};
62+
export const isTech = () => {
63+
return checkRole() === 'tech';
64+
};
6065
export const isAdmin = () => {
6166
const role = checkRole();
6267
return (
6368
role === 'admin' ||
6469
role === 'kyc' ||
6570
role === 'support' ||
66-
role === 'supervisor'
71+
role === 'supervisor' ||
72+
role === 'tech'
6773
);
6874
};

0 commit comments

Comments
 (0)