Changeset 6fa2a41


Ignore:
Timestamp:
Aug 10, 2014 12:18:18 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e3be1d1
Parents:
c7de4e4
Message:

Console: Hide client delete button too

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigClientsHandler.java

    rc7de4e4 r6fa2a41  
    105105            } catch (NumberFormatException nfe) {}
    106106            if (appnum >= 0) {
    107                 deleteClient(appnum);
     107                if (_context.getBooleanProperty(ConfigClientsHelper.PROP_ENABLE_CLIENT_CHANGE) ||
     108                    isAdvanced()) {
     109                    deleteClient(appnum);
     110                } else {
     111                    addFormError("Delete client disabled");
     112                }
    108113            } else if (pluginsEnabled) {
    109114                try {
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigClientsHelper.java

    rc7de4e4 r6fa2a41  
    142142                       showStop,
    143143                       // show delete button, show start button
    144                        !isConsole, showStart);
     144                       allowEdit && !isConsole, showStart);
    145145        }
    146146       
  • router/java/src/net/i2p/router/RouterVersion.java

    rc7de4e4 r6fa2a41  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 0;
     21    public final static long BUILD = 1;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.