[mms] Fix applying the 'allow_folders' permission.