~philipwhite/webpad

Abstract logic that requires the user to be an owner
13eb1e12 — Linux User 2 years ago
Make username use stronger type
21fa466e — Linux User 2 years ago
Use stronger type for user IDs.
bde2492c — Linux User 2 years ago
Add stronger type for CSRF tokens
96c8563c — Linux User 2 years ago
Add share page css file
047377f9 — Philip White 2 years ago
Improve vertical whitespace and fix schema comment indentation
4d69e501 — Philip White 2 years ago
Hide "share" link from users with the "editor" role

The share page is already inaccessible to these users, so why give them
a link to access it? Note that this is not client-side validation, since
we are already requiring them to be logged in to see the roles. This
change just makes the site less confusing by not presenting the user
with links to pages they can't visit.
49ebc2f2 — Philip White 2 years ago
Add roles management page with tests

This includes a share link on each document page, a share page which
allows adding, removing, and editing roles, and lastly some tests.
90768ad1 — Philip White 2 years ago
Use table on main index page rather than list

This allows metadata to be displayed in a better looking format than
just a concatenated string.
273480f4 — Philip White 2 years ago
Make test use separate environment from default config

This way, the webpad.db file doesn't get blown away on every test run,
which means I can actually start using the software for real things.
3b143eb9 — Philip White 2 years ago
Cosmetic code fixes
ce070a1f — Philip White 2 years ago
Ignore vim files
bb3efa39 — Philip White 2 years ago
Update README with description of access rules
8a75dc3c — Philip White 2 years ago
Add publishing functionality

This includes the server functionality to update the publicity of a document,
the UI for how to publish and unpublish a document, and a couple tests for the
publishing functionality. A public document page appears as a couple <pre> tags,
so it looks pretty bare-bones.
d8b5a4ce — Philip White 2 years ago
Some small refactorings
a08b27af — Philip White 2 years ago
Add document deletion functionality

Includes the server endpoint, with client and server-rendered UI, and passing tests.
69437eca — Philip White 2 years ago
Abstract getting a users role associated with a document
1363699b — Philip White 2 years ago
Ensure that a user is authorized to update a document

If they attempt to update both the title (or body) and the publicity,
but they are only and editor (and thus cannot update the publicity),
then neither the title nor the publicity will update, even though the
user has permission to update the title.
54315407 — Philip White 2 years ago
Add several tests, including autosave tests
3cd1ae8b — Philip White 2 years ago
Order documents with the most recently created at the top
Next