Skip to content

Commit

Permalink
Allow setting unauthorized to true from external code
Browse files Browse the repository at this point in the history
  • Loading branch information
WilStead committed Feb 12, 2024
1 parent 30ef66c commit 9c474d1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: publish
env:
VERSION: '0.7.3-preview'
VERSION: '0.7.4-preview'
PRERELEASE: true
on:
push:
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.4-preview
### Changed
- Allow setting unauthorized to true from external code

## 0.7.3-preview
### Changed
- Simplified project structure
Expand Down
13 changes: 12 additions & 1 deletion src/Client/Internal/WikiState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,22 @@ public string DisplayTitle
/// </summary>
public bool LoadError { get; internal set; }

private bool _notAuthorized;
/// <summary>
/// <para>
/// Whether the current user is not authorized to complete the current action (e.g. view or edit
/// a page).
/// </para>
/// <para>
/// This value can be set to <see langword="true"/> externally, but can only be set to <see langword="false"/> by
/// the library.
/// </para>
/// </summary>
public bool NotAuthorized { get; internal set; }
public bool NotAuthorized
{
get => _notAuthorized;
set => _notAuthorized |= value;
}

/// <summary>
/// The full title of the current wiki page, as a string.
Expand Down

0 comments on commit 9c474d1

Please sign in to comment.