Skip to content

[Bug]: files_version author names are only shown to admins #51574

Description

@blizzz

⚠️ This issue respects the following points: ⚠️

Bug description

When a file is collaboratively edited, a user might want to see the author names in files_version. They can do this only, when they are admin however.

The reason is the API call in:

const { data } = await axios.get(generateOcsUrl(`/cloud/users/${this.version.author}`))

It returns data on any user only for admins, but for ordinary users it shows information only about themselves.

It was implemented like this in #44109 but I am doubtful that this is intentional behaviour.

@artonge @susnux

Steps to reproduce

  1. files_versions is enabled
  2. A file is shared among users
  3. The file is edited by two or more users
  4. As an ordinary (non-admin) uses, open the files interface and open the Versions tab

Expected behavior

All author names (at least of still existing users) are visible.

Nextcloud Server version

>= 29

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions