Author Topic: [1.6beta] Bug creating a Company  (Read 1938 times)

damendieta

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
[1.6beta] Bug creating a Company
« on: October 28, 2009, 10:39:37 am »
Hi, I got this:

Caught Exception in AutoLoader: exception 'Exception' with message 'Could not find class file for "COPMANIES"' in /home/hdtbnet1/public_html/iee/environment/classes/AutoLoader.class.php:105 Stack trace: #0 /home/hdtbnet1/public_html/iee/environment/classes/AutoLoader.class.php(111): AutoLoader->loadClass('COPMANIES') #1 /home/hdtbnet1/public_html/iee/application/functions.php(33): AutoLoader->loadClass('COPMANIES') #2 /home/hdtbnet1/public_html/iee/application/models/companies/Company.class.php(382): __autoload('Copmanies') #3 /home/hdtbnet1/public_html/iee/application/controllers/CompanyController.class.php(129): Company->canAdd(Object(User), Object(Project)) #4 /home/hdtbnet1/public_html/iee/environment/classes/controller/Controller.class.php(76): CompanyController->add_client() #5 /home/hdtbnet1/public_html/iee/environment/classes/controller/PageController.class.php(62): Controller->execute('add_client') #6 /home/hdtbnet1/public_html/iee/environment/classes/Env.class.php(133): PageController->execute('add_client') #7 /home/hdtbnet1/public_html/iee/init.php(149): Env::executeAction('company', 'add_client') #8 /home/hdtbnet1/public_html/iee/index.php(9): require('/home/hdtbnet1/...') #9 {main}

I try to create a company from the "Contacts" section of the workspace.

The user is a member of the owner company with full permitions in its workspacce. No permition to "manage all contacts".

Daniel

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: [1.6beta] Bug creating a Company
« Reply #1 on: October 28, 2009, 10:42:49 am »
Hi

To fix that, replace line 382 of '/application/models/companies/Company.class.php' with this one

Code: [Select]
return  can_manage_contacts(logged_user()) || $user->isAccountOwner() || $user->isAdministrator() || can_add($user, $project, get_class(Companies::instance()));

regards