venturedrake / laravel-crm

Open Source Laravel CRM Package
https://laravelcrm.com
MIT License
265 stars 98 forks source link

Hardcoded current_crm_team_id #43

Open DCox2016 opened 10 months ago

DCox2016 commented 10 months ago

Description:

The variable current_crm_team_id is hard coded into places

vendor/venturedrake/laravel-crm/database/migrations/create_laravel_crm_tables.php.stub:309 vendor/venturedrake/laravel-crm/src/Http/Middleware/SystemCheck.php:20

the issue is crm_teams uses the config file permissions.php so this can be overwritten causing an issue with venturedrake crm. I would recommend using ENV variable to set 'team_foreign_key' for the permission.php file and for the vendor package.

Steps To Reproduce:

Nothing to reproduce.