Skip to content

[API] Flag to show if a user is admin or user #6043

Closed
@mmarif4u

Description

@mmarif4u

Hi,

Is there a flag in the API where it determines if the user response returned has a flag if he/she is admin or not?

I know a user cannot call for example create user API, only admin can. But the flag will provide more authority what a user can see outside Gitea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions