zeanium-node
Advanced tools
Comparing version 0.6.33 to 0.6.34
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.33", | ||
"version": "0.6.34", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -60,3 +60,4 @@ /** | ||
if(value){ | ||
return "zn_user_exist({0}, users, roles) <> 0".format(zn._request.getSessionValueByKey('id')); | ||
//"zn_plugin_admin_user_exist({0}, zn_rights_users, zn_rights_roles) <> 0".format(zn._request.getSessionValueByKey('id')); | ||
return zn.sql.rights(); | ||
}else { | ||
@@ -63,0 +64,0 @@ return ""; |
@@ -17,6 +17,11 @@ /** | ||
return zn.sql = zn.Class({ | ||
static: true, | ||
methods: { | ||
rights: function (userId){ | ||
return " (zn_rights_enabled = 0 or (zn_rights_enabled <> 0 and zn_plugin_admin_user_exist({0}, zn_rights_users, zn_rights_roles) <> 0)) ".format(userId || zn._request.getSessionValueByKey('id')); | ||
}, | ||
observeRights: function (userId){ | ||
return " (zn_rights_enabled = 0 or (zn_rights_enabled <> 0 and zn_plugin_admin_user_exist({0}, zn_rights_observe_users, zn_rights_observe_roles) <> 0)) ".format(userId || zn._request.getSessionValueByKey('id')); | ||
}, | ||
paging: function (){ | ||
@@ -23,0 +28,0 @@ return __slice.call(arguments).map(function (data){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259932
6069