Created
April 5, 2024 08:06
-
-
Save EscApp2/7787c1e5381b0a271f49b2195c39c948 to your computer and use it in GitHub Desktop.
bitrix Запретить сохранять файлы
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
AddEventHandler("main",'OnFileSave','OnFileSave'); | |
function OnFileSave(&$arFile, $fileName, $module) | |
{ | |
if(isUserInGroup(9)){ | |
unset($arFile['tmp_name']); // to delete | |
} | |
return false; // not true; true breaks event loop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment