mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 15:36:52 +00:00
parent
b8f2800dab
commit
6d448499c7
@ -51,6 +51,7 @@ exports.handler = function(request,response,state) {
|
||||
"first-guest-user": state.firstGuestUser ? "yes" : "no",
|
||||
"show-anon-config": state.showAnonConfig ? "yes" : "no",
|
||||
"user": JSON.stringify(state.authenticatedUser),
|
||||
"has-profile-access": !!state.authenticatedUser ? "yes" : "no"
|
||||
}});
|
||||
response.write(html);
|
||||
response.end();
|
||||
|
@ -91,6 +91,7 @@ exports.handler = function(request,response,state) {
|
||||
"username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Anonymous User" : "Guest",
|
||||
"user-is-admin": state.authenticatedUser && state.authenticatedUser.isAdmin ? "yes" : "no",
|
||||
"user-id": user_id,
|
||||
"has-profile-access": !!state.authenticatedUser ? "yes" : "no"
|
||||
}
|
||||
});
|
||||
response.write(html);
|
||||
|
@ -27,7 +27,7 @@ title: $:/plugins/tiddlywiki/multiwikiserver/templates/mws-header
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<% elseif [<username>!match[Guest]]+[<first-guest-user>match[no]] %>
|
||||
<% elseif [<has-profile-access>match[yes]] %>
|
||||
<$set name="userId" value={{{ [<user>jsonget[user_id]] }}}>
|
||||
<a href={{{ [<userId>addprefix[/admin/users/]] }}}>
|
||||
<button class="mws-profile-btn">Profile</button>
|
||||
|
Loading…
Reference in New Issue
Block a user