Changeset 454 for binary-improvements/webserver_legacy
- Timestamp:
- Jul 28, 2023, 8:42:10 PM (17 months ago)
- Location:
- binary-improvements/webserver_legacy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver_legacy/index.html
r369 r454 91 91 Logged in as:<br/> 92 92 <a id="username" href="" target="_blank"></a><br/> 93 <a href="/ session/logout">Sign out</a>93 <a href="/api/SteamLoginApi/logout">Sign out</a> 94 94 </div> 95 95 <div id="userstate_loggedout"> 96 96 Not logged in<br/> 97 97 <center> 98 <a href="/ session/login">98 <a href="/api/SteamLoginApi/loginsteam"> 99 99 <img src="img/steamlogin.png" title="Sign in through Steam"> 100 100 </a> -
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.