Fixed issue in Security service to get the user's writable permissions