biz9-logic 10.0.58 → 10.0.59
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/biz9_config +1 -1
- package/index.js +3 -1
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -986,7 +986,6 @@ static get_pages(){
|
|
|
986
986
|
|
|
987
987
|
}
|
|
988
988
|
class User_Logic {
|
|
989
|
-
|
|
990
989
|
static get_user_roles(){
|
|
991
990
|
return [
|
|
992
991
|
{value:Type.USER_ROLE_ADMIN,label:Type.TITLE_USER_ROLE_ADMIN,title:Type.TITLE_USER_ROLE_ADMIN},
|
|
@@ -995,6 +994,9 @@ class User_Logic {
|
|
|
995
994
|
{value:Type.USER_ROLE_GUEST,label:Type.TITLE_USER_ROLE_GUEST,title:Type.TITLE_USER_ROLE_GUEST},
|
|
996
995
|
];
|
|
997
996
|
};
|
|
997
|
+
static get_user_role_by_type(type){
|
|
998
|
+
return User_Logic.get_user_roles().find(item_find => item_find.value === type);
|
|
999
|
+
};
|
|
998
1000
|
static get_country_state_city(item){
|
|
999
1001
|
let country_state_city = "";
|
|
1000
1002
|
if(item.country == "United States"){
|