Skip to content
Snippets Groups Projects
Commit fc3b929b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't copy/use the Access Requirements of the template sub for newly-added subs

We don't clone the Access Requirements from the template sub-board when clonig
(intentionally), similarly we shouldn't copy the Access Requirements of the
template sub-board when creating/adding/importing new sub-boards either.

This should fix issue #736 even though the title and description of the issue
is misleading.
parent f8e57aaa
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -45,6 +45,7 @@ bool new_sub(int new_subnum, int group_num, sub_t* pasted_sub, long misc)
if(cfg.sub[u]->grp == group_num) {
*new_subboard = *cfg.sub[u];
new_subboard->misc &= ~SUB_TEMPLATE;
new_subboard->arstr[0] = 0;
if(cfg.sub[u]->misc & SUB_TEMPLATE) /* Use this sub (not last) if marked as template */
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment