def _can_write(self, user):
        return user.name in self.access_permissions('write')
dataset/ETHPy150Open christabor/MoAL/MOAL/software_engineering/problem_solving/design_patterns/grasp/pattern_cohesion.py/FileOpener._can_write/original