diff --git a/doc/configuration.rst b/doc/configuration.rst index 629f7f5..671b734 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -639,6 +639,15 @@ the user interface of this pagure instance. Defaults to: ``True`` +ENABLE_DEL_FORKS +~~~~~~~~~~~~~~~~ + +This configuration key permits or forbids deletion of forks via +the user interface of this pagure instance. + +Defaults to: ``ENABLE_DEL_PROJECTS`` + + EMAIL_SEND ~~~~~~~~~~ diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index 72843ca..5aa325b 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -1090,7 +1090,10 @@ {% endif %} - {% if config.get('ENABLE_DEL_PROJECTS', True) %} + {% if (not repo.is_fork and config.get('ENABLE_DEL_PROJECTS', True)) + or + (repo.is_fork and not config.get('ENABLE_DEL_FORKS', + config.get('ENABLE_DEL_PROJECTS', True))) %}