Skip to content
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

fix: setup wizard breaks for non-admin user during ERPNext setup on frappehr.com domains #2100

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

ruchamahabal
Copy link
Member

Problem: hrms disables erpnext-specific roles after install.

This used to work fine earlier as FC used to login and run setup wizard as admin. But FC now logs the user in as the system manager and not as an admin, so erpnext setup breaks due to missing roles

telegram-cloud-photo-size-5-6208774860646235479-y

Solution: move disabling roles to setup_wizard_complete hook

- hrms disables erpnext-specific roles after install. FC now logs the user in as system manager and not as an admin, so erpnext setup breaks due to missing roles

- solution: move disabling roles to `setup_wizard_complete` hook
@ruchamahabal ruchamahabal changed the title fix: setup wizard breaks for non-admin user fix: setup wizard breaks for non-admin user during ERPNext setup Aug 21, 2024
@ruchamahabal ruchamahabal changed the title fix: setup wizard breaks for non-admin user during ERPNext setup fix: setup wizard breaks for non-admin user during ERPNext setup on frappehr.com domains Aug 21, 2024
@ruchamahabal ruchamahabal merged commit 9baf711 into frappe:develop Aug 21, 2024
9 checks passed
mergify bot pushed a commit that referenced this pull request Aug 21, 2024
…rappehr.com domains (#2100)

- hrms disables erpnext-specific roles after install. FC now logs the user in as system manager and not as an admin, so erpnext setup breaks due to missing roles

- solution: move disabling roles to `setup_wizard_complete` hook

(cherry picked from commit 9baf711)

# Conflicts:
#	hrms/subscription_utils.py
mergify bot pushed a commit that referenced this pull request Aug 21, 2024
…rappehr.com domains (#2100)

- hrms disables erpnext-specific roles after install. FC now logs the user in as system manager and not as an admin, so erpnext setup breaks due to missing roles

- solution: move disabling roles to `setup_wizard_complete` hook

(cherry picked from commit 9baf711)
ruchamahabal added a commit that referenced this pull request Aug 21, 2024
…rappehr.com domains (backport #2100) (#2102)

- hrms disables erpnext-specific roles after install. FC now logs the user in as system manager and not as an admin, so erpnext setup breaks due to missing roles

- solution: move disabling roles to `setup_wizard_complete` hook

(cherry picked from commit 9baf711)

Co-authored-by: Rucha Mahabal <[email protected]>
frappe-pr-bot pushed a commit that referenced this pull request Aug 21, 2024
# [15.27.0](v15.26.0...v15.27.0) (2024-08-21)

### Bug Fixes

* backport german translations from develop ([#2098](#2098)) ([6cf777d](6cf777d))
* **PWA:** Allow login using username (backport [#2090](#2090)) ([#2095](#2095)) ([514b782](514b782))
* setup wizard breaks for non-admin user during ERPNext setup on frappehr.com domains (backport [#2100](#2100)) ([#2102](#2102)) ([3e7bb1f](3e7bb1f))

### Features

* add HR app to apps page ([#2076](#2076)) ([#2096](#2096)) ([f676dd4](f676dd4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant