* feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (#18263) * feat: added Subscription Banner and Manage Subscription button * feat[patch]: added a patch for adding `Manage Subscription` button in navbar_settings * chore: removed console ;) * refactor: make the `Manage Subscription` navbar item optional * keep it hidden by default, only show when the site configs are present * style: prettier, isort and stuff * chore: handling null responses, translation and refactored patch * fix: correct index reset * perf: reduce network/db calls If not sys manager then why make a request? * fix: removed network call and added subscription_expiry to boot process * chore: added enable_manage_susbcriptions as daily background job and refactored patch * chore: added hook to hooks.py * this looks clean enough, also don't have insert for child tables ;) Co-authored-by: Ankush Menat <ankush@frappe.io> (cherry picked from commit 68f315d372cc8c6e41f2aabda61eba0d42dcf6e4) # Conflicts: # frappe/patches.txt * chore: conflicts * style: format [skip ci] Co-authored-by: Rutwik Hiwalkar <50401596+rutwikhdev@users.noreply.github.com>
10 lines
209 B
Python
10 lines
209 B
Python
import json
|
|
|
|
import frappe
|
|
|
|
|
|
def execute():
|
|
if frappe.db.exists("Social Login Key", "github"):
|
|
frappe.db.set_value(
|
|
"Social Login Key", "github", "auth_url_data", json.dumps({"scope": "user:email"})
|
|
)
|