Reworking handling privileges for hybrid application