<s> from flask_pundit . application_policy import ApplicationPolicy <EOL> class CommentingPolicy ( ApplicationPolicy ) : <EOL> def get ( self ) : <EOL> return self . user . get ( '<STR_LIT>' ) == '<STR_LIT>' <EOL> class Scope ( ApplicationPolicy . Scope ) : <EOL> def resolve ( self ) : <EOL> if self . user . get ( '<STR_LIT>' ) == '<STR_LIT>' : <EOL> return [ '<STR_LIT>' ] <EOL> return [ '<STR_LIT>' ] </s>
