<s> from bibserver . core import current_user <EOL> from bibserver . config import config <EOL> def read ( account , collection ) : <EOL> return True <EOL> def update ( account , collection ) : <EOL> allowed = not account . is_anonymous ( ) and collection [ "<STR_LIT>" ] == account . id <EOL> if not account . is_anonymous ( ) : <EOL> try : <EOL> if account . id in collection [ '<STR_LIT>' ] : <EOL> allowed = True <EOL> except : <EOL> pass <EOL> if account . id in config [ '<STR_LIT>' ] : <EOL> allowed = True <EOL> return allowed <EOL> def create ( account , collection ) : <EOL> return not account . is_anonymous ( ) </s>
