Skip to content

When token doesn't have the required permission for an action, make it explicit in error message #82

@Porkepix

Description

@Porkepix

I confirm that I have searched the issue tracker

Before opening an issue, take a few minutes to search the issue tracker (both open and closed issues) for the problem you are facing. This will reduce the need for issue triage and save time.

  • I confirm that I have searched the issue tracker

Describe the bug

When trying to do in the application an action not allowed by token's permissions, the error message is wrong: it says it cannot reach the server (see screenshot below).

To Reproduce

Add an account with a token with insufficient permissions, for example not enough to read groups and try to access groups.

Expected behavior

The error message should be explicit

Screenshots

Screenshot

Image

Versions (please complete the following information)**

  • LabNex: 4.0.0
  • Android: 14
  • GitLab: 14.7.8

GitLab instance

  • gitlab.com
  • framagit.org
  • Self-hosted instance
  • Other service (Name/URL: )

Mode of installation

  • Google Play Store
  • F-droid
  • APK
  • Built from source
  • OpenAPK
  • Other stores (Name: )

Declaration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions