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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +3 -1
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='10.5.9'
1
+ VERSION='10.6.0'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main'
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"){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "10.0.58",
3
+ "version": "10.0.59",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"