fargo: check for real that fargo is installed (#14782)
This commit is contained in:
parent
54595843a7
commit
1b00a311cf
|
@ -35,7 +35,8 @@ class RecentDocumentsCell(CellBase):
|
|||
return False
|
||||
return super(RecentDocumentsCell, self).is_visible(user)
|
||||
|
||||
def is_fargo_enabled(self):
|
||||
@classmethod
|
||||
def is_enabled(cls):
|
||||
return hasattr(settings, 'KNOWN_SERVICES') and settings.KNOWN_SERVICES.get('fargo')
|
||||
|
||||
def get_json(self, path, context):
|
||||
|
|
Loading…
Reference in New Issue