-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Admin" link missing on some pages #63
Comments
I noticed the TemplateData is inconsistently populated across handlers. I think There's also some spots where we can avoid duplicated calls to the database asking for the individual fields for the user data. I have some code working for this locally. I could make a PR if it's okay with @cblgh |
the admin link missing was actually intended, but perhaps it wasn't so useful. i just wanted to constrain the admin controls and reminders to one place rather than always having an admin top-hat on @JamieCrisman can you put up your changes on a branch you host somewhere and link me? reading someone's code and giving it a think over would be a nice intermediate from the almost conflict-oriented PR approach github has imposed on collaboration :) |
I've made a branch. I tried to break it up into more bite sized commits. And attempted to explain the changes in the commit message. First three are the main changes. First two just setting up for the third. Last one is a little side thing I noticed while testing. main...JamieCrisman:cerca:context For non-admin users, would it be good to have a link to the admin page (maybe on the about page)? Or is that being held off for some reason? Thought it was interesting to realize there's an admin and moderation log that could be seen and even works on merveilles instance, but is not linked to anywhere. |
on e.g. /about, there is no "admin" link in the header, I believe because
IsAdmin
is not populated.With
IsAdmin
andPending
booleans, I wonder if storing a larger 'logged in user metadata' struct rather than getting each field individually may be valuable, and reduce code duplicationThe text was updated successfully, but these errors were encountered: