Updated patch to make permission changes apply instantly rather than requiring the user to disconnect from the share