<table><tr><td style="">chinmoyr created this revision.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6198" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch makes it possible to delete root owned files and folders.<br />
To avoid any accidental deletion a warning is shown informing the user about the write-protection. The warnings can either be from KIO::JobUIDelegate or from file ioslave because there arise two cases while deleting with escalated privilege.</p>

<p>Case 1: The parent dir of the item(s) to be deleted is write-protected <br />
In this case the warning will be shown from JobUIDelegate. Since this will be a privileged operation, the warning dialog won't have the "Don't show again" checkbox. Following the warning the polkit authentication dialog will be shown if the user has not authenticated himself otherwise if the delete was performed within the threshold time the file will be deleted imediately.</p>

<p>Case 2: The parent isn't write-protected but some of the children are<br />
In this case the regular warning is shown from JobUIDelegate and ioslave performs the delete operation. It continues till a root owned item is encountered. At this point either the polkit authentication dialog is shown or the warning from the ioslave.</p>

<p>Depends on <a href="https://phabricator.kde.org/D6197" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D6197</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6198" rel="noreferrer">https://phabricator.kde.org/D6198</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/jobuidelegateextension.h<br />
src/ioslaves/file/file.cpp<br />
src/ioslaves/file/file_unix.cpp<br />
src/ioslaves/file/kauth/file.actions<br />
src/ioslaves/file/kauth/helper.cpp<br />
src/ioslaves/file/kauth/helper.h<br />
src/widgets/jobuidelegate.cpp</div></div></div><br /><div><strong>To: </strong>chinmoyr, elvisangelaccio, Frameworks<br /></div>