Socket
Socket
Sign inDemoInstall

zeanium-node

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeanium-node - npm Package Compare versions

Comparing version 0.6.33 to 0.6.34

2

package.json
{
"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){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc