Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase
Updated the logic that was preventing some templates within org_admin/templates/customisable from being accessed.
Prior to this change, for a customizable template to be accessed by a user, either template.org.funder_only? or template.default had to be true.
This PR changes this check from template.org.funder_only? to template.funder?. As a result, rather than having template.org.org_type be exclusively funder, it now only has to include funder as one of its types.
This change is especially important for the default org in DMP Assistant. That is because it has both funder and institution as its org_type, and also because template.org is the default org for all of DMP Assistant's customizable templates.
Fixes #755
Changes proposed in this PR:
org_admin/templates/customisable
from being accessed.template.org.funder_only?
ortemplate.default
had to be true.template.org.funder_only?
totemplate.funder?
. As a result, rather than havingtemplate.org.org_type
be exclusively funder, it now only has to includefunder
as one of its types.funder
andinstitution
as its org_type, and also because template.org is the default org for all of DMP Assistant's customizable templates.