Removed new account button when in SSPI auth.

Ylian Saint-Hilaire committed Feb 28, 2019 at 16:50 UTC 90463a4c884fab055c3e386adc47671b74577505
2 files changed +5 -5
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.2.9-i",
3 + "version": "0.2.9-j",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",
views/default.handlebars
+4 -4
@@ -300,12 +300,11 @@
300 <td class=h1></td>
301 <td class=style14>
302 <div style="float:right">
303 - <input type=button onclick=showUserBroadcastDialog() value="Broadcast" />&nbsp;
303 + <input type=button onclick=showUserBroadcastDialog() style=margin-right:6px value="Broadcast" />
304 </div>
305 <div>
306 - &nbsp;
307 - <input type=button onclick=showCreateNewAccountDialog() value="New Account..." />&nbsp;
308 - <input id=UserSearchInput type=text style=width:120px placeholder=Filter onchange=onUserSearchInputChanged() onkeyup=onUserSearchInputChanged() autocomplete=off onfocus=onUserSearchFocus(1) onblur=onUserSearchFocus(0) />&nbsp;
306 + <input id=UserNewAccountButton type=button style=margin-left:6px onclick=showCreateNewAccountDialog() value="New Account..." />
307 + <input id=UserSearchInput type=text style=width:120px;margin-left:6px placeholder=Filter onchange=onUserSearchInputChanged() onkeyup=onUserSearchInputChanged() autocomplete=off onfocus=onUserSearchFocus(1) onblur=onUserSearchFocus(0) />
308 </div>
309 </td>
310 <td class=h2></td>
@@ -6346,6 +6345,7 @@
6345 function updateUsers() {
6346 QV('MainMenuMyUsers', (users != null) && ((features & 4) == 0));
6347 QV('LeftMenuMyUsers', (users != null) && ((features & 4) == 0));
6348 + QV('UserNewAccountButton', ((features & 4) == 0) && (serverinfo.domainauth == false));
6349 if ((users == null) || ((features & 4) != 0)) { QH('p3users', ''); return; }
6350
6351 // Sort the list of user id's