Fixing raid model for new permissions