Skip to content

Error in display of meta in ServiceStack/Templates/auth.html #732

@titobrasolin-ke

Description

@titobrasolin-ke

The line below seems a little strange to me:
https://github.com/ServiceStack/ServiceStack/blob/46b4578bf1a3c4b863ac9e1a960b92f329bb581e/src/ServiceStack/Templates/auth.html#L254

if (cmpKey === 'meta')
{
    for (var name in v) {
        if (name.endsWith('-tokens')) {
            // ... Do something...
        } else {
            sb.push('<tr><th><div>' + humanize(k) + '</div></th><td><div>' + str + '</div></td></tr>');
        }
    }
}

If name does not end with '-tokens' then str is printed, whatever it contains.
In fact, the "auth" page of the project I'm working on repeatedly shows the list of permissions next to the word "meta".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions