change the permission check for default folder

Now the component looks for full permission instead of writing
permission.