Skip to content

Can't change CanImportLocal in User Administration #4482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 6 tasks
Cyber1000 opened this issue Jul 20, 2018 · 7 comments
Closed
1 of 6 tasks

Can't change CanImportLocal in User Administration #4482

Cyber1000 opened this issue Jul 20, 2018 · 7 comments
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@Cyber1000
Copy link

  • Gitea version (or commit ref): fe78154
  • Operating system: ubuntu (within docker)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [ x] No --> setting is within administration of users
    • Not relevant
  • Log gist:

Description

If I edit a user in administration view I can change the CanImportLocal flag, but after saving the flag vanishes ...
The message "Der Account „%s“ wurde aktualisiert." is a bug too, the message comes with %s, instead of the real user name.

Screenshots

image

@techknowlogick
Copy link
Member

IMPORT_LOCAL_PATHS is likely set to false in app.ini (or not set at all which then defaults to false). Please set to true, and try again. More information here: https://docs.gitea.io/en-us/config-cheat-sheet/

@techknowlogick techknowlogick added type/question Issue needs no code to be fixed, only a description on how to fix it yourself. type/bug labels Jul 20, 2018
@Cyber1000
Copy link
Author

IMPORT_LOCAL_PATHS wasn't set. It seems that if the user is a administrator it always automatically gets the default of IMPORT_LOCAL_PATHS.

Now if IMPORT_LOCAL_PATHS=true and I deselect CanImportLocal on a administrative user, it gets selected again automatically when saving. On a normal user I can switch between true and false now. Is this intended behavior?

@lafriks lafriks removed the type/bug label Aug 10, 2018
@lafriks
Copy link
Member

lafriks commented Aug 10, 2018

Yes that is intended behaviour

@lafriks lafriks closed this as completed Aug 10, 2018
@Cyber1000
Copy link
Author

Sorry to answer so late, but it's still a little bit strange to me that I check checkboxes, save the site, it says "Account was updated" and afterwards I find that a checkbox has magically rechanged it's flag. A deactivated checkbox or an error-message on saving would be more conclusive for the user.

Also the "Der Account „%s“ wurde aktualisiert." with the %s within doesn't sound to be intended. Seems like the accountname wasn't but in the string properly.

Thanks!

@jxsl13
Copy link

jxsl13 commented Sep 12, 2018

Still persists: The message "Der Account „%s“ wurde aktualisiert." is a bug too, the message comes with %s, instead of the real user name.

Seems to be this line, where no username is being added to the string:

ctx.Flash.Success(ctx.Tr("admin.users.update_profile_success"))

@Cyber1000
Copy link
Author

Ok thanks, perhaps I'll have a look at it, when I'm having more time. At least it is a minor bug ...

@kolaente
Copy link
Member

kolaente commented Jun 2, 2019

@Cyber1000 @jxsl13 I've approved the correct translation on crowdin, it should land in Gitea with the next sync of locales.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

No branches or pull requests

5 participants