| @@ -237,8 +237,20 @@ | ||
| 237 | 237 | }); |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | /** |
| 241 | + * Limit boards to types supported by the currently loaded plugins. | |
| 242 | + */ | |
| 243 | + public function scopeAvailableInCurrentInstall($query) | |
| 244 | + { | |
| 245 | + if (!defined('FLUENT_ROADMAP')) { | |
| 246 | + return $query->where('type', 'to-do'); | |
| 247 | + } | |
| 248 | + | |
| 249 | + return $query; | |
| 250 | + } | |
| 251 | + | |
| 252 | + /** | |
| 241 | 253 | * Only template boards (inverse of scopeExcludeTemplates). |
| 242 | 254 | */ |
| 243 | 255 | public function scopeOnlyTemplates($query) |
| 244 | 256 | { |