forked from cory/tildefriends
Make smtp require-able, and add some better credentials checks for users who aren't logged in at all.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3218 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -5,7 +5,8 @@ function fileList(settings) {
|
||||
terminal.setEcho(false);
|
||||
terminal.clear();
|
||||
terminal.print(settings.title);
|
||||
if (core.user.credentials.permissions
|
||||
if (core.user.credentials
|
||||
&& core.user.credentials.permissions
|
||||
&& core.user.credentials.permissions.authenticated) {
|
||||
terminal.print({command: "new"});
|
||||
}
|
||||
@ -80,7 +81,8 @@ function fileList(settings) {
|
||||
});
|
||||
for (var i = 0; i < entries.length; i++) {
|
||||
if (entries[i].substring(0, prefix.length) == prefix) {
|
||||
if (core.user.credentials.permissions
|
||||
if (core.user.credentials
|
||||
&& core.user.credentials.permissions
|
||||
&& core.user.credentials.permissions.authenticated) {
|
||||
terminal.print(
|
||||
"* ",
|
||||
|
Reference in New Issue
Block a user