Ignore:
Timestamp:
2021-07-09T22:33:03+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21065 - update fully automatic OAuth authentication to adapt to recent OSM server changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/oauth/OsmPrivileges.java

    r9201 r17972  
    1313    private boolean allowWritePrefs;
    1414    private boolean allowModifyNotes;
     15    private boolean allowWriteDiary;
    1516
    1617    /**
     
    109110        this.allowModifyNotes = allowModifyNotes;
    110111    }
     112
     113    /**
     114     * Determines if the client is allowed to write diary.
     115     * @return {@code true} if the client is allowed to write diary, {@code false} otherwise
     116     * @since 17972
     117     */
     118    public boolean isAllowWriteDiary() {
     119        return allowWriteDiary;
     120    }
     121
     122    /**
     123     * Sets whether the client is allowed to write diary.
     124     * @param allowWriteDiary {@code true} if the client is allowed to write diary, {@code false} otherwise
     125     * @since 17972
     126     */
     127    public void setAllowWriteDiary(boolean allowWriteDiary) {
     128        this.allowWriteDiary = allowWriteDiary;
     129    }
    111130}
Note: See TracChangeset for help on using the changeset viewer.