How to change the admin user (was: Unable to disable currencies)
-
Hi All,
I am able to enable new currencies in the Options menu. I am logged in as a 'Superadmin' (configured in Cloudron).
Trying to disable another currency I get the error message:
'Error! Please ask mail@example.com to add, remove or edit currencies.'I haven't enter that example mail address anywhere according to my knowledge.
Did anyone else experience this issue?
-
@nottheend Seems like there are a couple of reports upstream about this like https://github.com/firefly-iii/firefly-iii/issues/4121 and https://github.com/firefly-iii/firefly-iii/issues/943 .
Can you set the
SITE_OWNER
variable in/app/data/env
to your email address ? -
So, just to be clear(er): The first user is indeed the site admin (was fixed in https://github.com/firefly-iii/firefly-iii/issues/6150) . If you are trying to login as any other user and add a currency, it probably shows the above message. The message is using the
SITE_OWNER
variable in the env file.To add the currency itself, you have to login as the site admin i.e the first user that you logged in as in firefly-iii . Fixing
SITE_OWNER
only changes the message it shows. -
@girish Thank you for the detailed and helpful answer! Indeed, it looks like https://github.com/firefly-iii/firefly-iii/issues/6150
This is fixed in the version which is installed in my cloudron. It seems that I have deleted the user which I used for the first login in Firefly-III.So probably a solution would be to manually backup the apps data, reinstall firefly and impirt the data again. But somehow I would need to exclude the user.
But I hope for a simpler solution. Hence I added a comment in the discussion section.
https://github.com/orgs/firefly-iii/discussions/6145#discussioncomment-3945347
-
@girish More update on this: I found a discussion how to change the Admin in the DB directly. Seems to be the solution with less pain.
Role = 1 should to do the trick in the user table
https://github.com/firefly-iii/firefly-iii/discussions/5295
(Maybe the title of this thread is more about "How to change the admin user")
-
@nottheend thanks for the update! fixed the title as well.