Add admin option to configure APN #73
@@ Coverage Diff @@ ## master #73 +/- ## ========================================== - Coverage 72.3% 71.86% -0.45% ========================================== Files 19 20 +1 Lines 1217 1251 +34 ========================================== + Hits 880 899 +19 - Misses 337 352 +15
Oct 28, 2018
@nzola The APN line will be there if the SIM information configured for the device has an APN line in it. This page lets the admin edit the entire wvdial.conf file that was generated for the device. The screenshot simply shows the default wvdial configuration which doesn't contain anything.
You're correct that only admins can view the settings page. Also, since #74 an admin can make another user admin, from the Users page (where admins can also suspend accounts or reset passwords):
Note that for now I've added logic that an admin can't "demote" another admin or change their password to prevent potential issues with one admin locking out themselves or everyone else (which is why next to the admin users marked with a star you can't see the suspend or promote options). Let me know if you'd like me to change this.
I like the way to implement the admin logic now. If I understand ; the initial admin of the Lokole can pass his admin power to another user. At this point the initial admin cannot take back his admin power, but only the new admin has the power to give it back to him or to someone else. Is this correct? If yes, then this is the way I would love it to operate.