Changeset 454 for binary-improvements/webserver_legacy/js
- Timestamp:
- Jul 28, 2023, 8:42:10 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver_legacy/js/permissions.js
r339 r454 4 4 $.getJSON( "../userstatus") 5 5 .done(function(data) { 6 userdata = data ;6 userdata = data.data; 7 7 8 8 var userdataDiv = $("#userstate"); 9 if (userdata.logged in == true) {9 if (userdata.loggedIn == true) { 10 10 var data = userdataDiv.children ("#userstate_loggedin"); 11 11 data.attr ("style", "display: block"); … … 53 53 for (var i = 0; i < userdata.permissions.length; i++) { 54 54 if (userdata.permissions [i].module.toUpperCase() == modulename.toUpperCase()) { 55 return userdata.permissions [i].allowed ;55 return userdata.permissions [i].allowed.GET; 56 56 } 57 57 }
Note:
See TracChangeset
for help on using the changeset viewer.