How did this ever work?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3208 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2016-04-17 12:17:59 +00:00
parent 9bfb0d6a4c
commit b917cbe08f
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,8 @@ function fileList(settings) {
terminal.setEcho(false);
terminal.clear();
terminal.print(settings.title);
if (core.user.credentials.permissions.authenticated) {
if (core.user.credentials.permissions
&& core.user.credentials.permissions.authenticated) {
terminal.print({command: "new"});
}
@ -79,7 +80,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.authenticated) {
if (core.user.credentials.permissions
&& core.user.credentials.permissions.authenticated) {
terminal.print(
"* ",
{style: "font-weight: bold", value: {command: "open:" + entries[i], value: entries[i].substring(prefix.length)}},