~bibledit/bibledit/ubuntu-cloud-beta

« back to all changes in this revision

Viewing changes to search/replacego2.cpp

  • Committer: Teus Benschop
  • Date: 2022-10-14 16:03:26 UTC
  • Revision ID: teusjannette@gmail.com-20221014160326-42ybrpft4bblpruk
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
bool search_replacego2_acl (void * webserver_request)
44
44
{
45
45
  if (Filter_Roles::access_control (webserver_request, Filter_Roles::translator ())) return true;
46
 
  auto [ read, write ] = AccessBible::Any (webserver_request);
 
46
  auto [ read, write ] = access_bible::any (webserver_request);
47
47
  return write;
48
48
}
49
49
 
74
74
  
75
75
  // Check whether the user has write access to the book.
76
76
  string user = request->session_logic ()->currentUser ();
77
 
  bool write = AccessBible::BookWrite (webserver_request, user, bible, book);
 
77
  bool write = access_bible::book_write (webserver_request, user, bible, book);
78
78
 
79
79
  
80
80
  // Get the old chapter and verse USFM.
147
147
  
148
148
  // Store the new chapter in the database on success.
149
149
  if (replacementOkay && write) {
150
 
    bible_logic_store_chapter (bible, book, chapter, new_chapter_usfm);
 
150
    bible_logic::store_chapter (bible, book, chapter, new_chapter_usfm);
151
151
  }
152
152
  
153
153