audit-logs: implement enum sources that should be re-used.

This commit is contained in:
Marcin Kuzminski 2017-06-14 11:51:46 +02:00
parent c36f3f7abd
commit dbcc488137
3 changed files with 9 additions and 3 deletions

View file

@ -101,7 +101,8 @@ class RepoSettingsView(RepoAppView):
repo_name=self.db_repo.repo_name)
audit_logger.store(
action='repo.delete',
action_data={'repo_data': repo_data, 'source': 'web_action'},
action_data={'repo_data': repo_data,
'source': audit_logger.SOURCE_WEB},
user=self._rhodecode_user, repo=repo, commit=False)
ScmModel().mark_for_invalidation(self.db_repo_name, delete=True)