mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +00:00
add user events
This commit is contained in:
@@ -12,6 +12,12 @@ try:
|
||||
except ImportError:
|
||||
BUSINESS_MODE = False
|
||||
|
||||
try:
|
||||
from settings import EVENTS_CONFIG_FILE
|
||||
SHOW_EVENTS = True
|
||||
except ImportError:
|
||||
SHOW_EVENTS = False
|
||||
|
||||
def base(request):
|
||||
"""
|
||||
Add seahub base configure to the context.
|
||||
@@ -32,5 +38,6 @@ def base(request):
|
||||
'cloud_mode': request.cloud_mode,
|
||||
'org': org,
|
||||
'base_template': base_template,
|
||||
'show_events': SHOW_EVENTS,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user