Fossil

Check-in [c717d280]
Login

Check-in [c717d280]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix login redirects for the forum. Forum post 7663482abad5a3ea.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c717d2803e19a120dfc0790dc2914831950328183b47c816f8bd2aed11717e5a
User & Date: drh 2021-08-27 12:31:56
Context
2021-08-28
15:11
Added missing db_protect() when importing (config export user) data via (config import), as reported in forum post dea06dd696359a59. ... (check-in: 8ad6aa53 user: stephan tags: trunk)
2021-08-27
14:01
Clean up the data structures associated with adding color to diffs in preparation for attempts to improve the coloration. ... (check-in: 8c619bf2 user: drh tags: diff-color-enhancements)
12:31
Fix login redirects for the forum. Forum post 7663482abad5a3ea. ... (check-in: c717d280 user: drh tags: trunk)
12:09
Add a missing #include to diffcmd.c so that the build will work under mingw32. ... (check-in: 00c8622a user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/forum.c.

1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
  char *zGoto;
  login_check_credentials();
  if( !g.perm.WrForum ){
    login_needed(g.anon.WrForum);
    return;
  }
  if( sqlite3_strglob("*edit*", g.zPath)==0 ){
    zGoto = mprintf("%R/forume2?fpid=%S",PD("fpid",""));
    isEdit = 1;
  }else{
    zGoto = mprintf("%R/forume1");
    isEdit = 0;
  }
  if( login_is_individual() ){
    if( isEdit ){
      forumedit_page();
    }else{
      forumnew_page();







|


|







1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
  char *zGoto;
  login_check_credentials();
  if( !g.perm.WrForum ){
    login_needed(g.anon.WrForum);
    return;
  }
  if( sqlite3_strglob("*edit*", g.zPath)==0 ){
    zGoto = mprintf("forume2?fpid=%S",PD("fpid",""));
    isEdit = 1;
  }else{
    zGoto = mprintf("forume1");
    isEdit = 0;
  }
  if( login_is_individual() ){
    if( isEdit ){
      forumedit_page();
    }else{
      forumnew_page();