New user > Error 403

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PGI
    Member
    • Oct 2017
    • 77

    New user > Error 403

    Hello,

    I encounter a strange error: when I create a new user, I get a 403 error.

    I have the latest version of EspoCRM and I have never encountered this problem before. Besides, I haven't changed anything in my configuration.

    Do you know where the problem may come from?

    Thank you.
  • PGI
    Member
    • Oct 2017
    • 77

    #2
    Has the "type" field been added recently in the "user" entity?
    I ask this question because I wonder if this is not the problem.

    Comment

    • PGI
      Member
      • Oct 2017
      • 77

      #3
      On an old EspoCRM installation, I actually noticed that the "type" field did not exist.

      However, on my current EspoCRM installation, I needed to create it a few months ago to organize my users.

      From now on, the EspoCRM editor has also created the "type" field to manage administration rights. So I guess it created a bug in my database since the same field existed, with the same name for different reasons.

      What can I do about it?

      (1) Do I have to recreate the various "types" of users that exist in the Espocrm demo and that do not exist on my EspoCRM?
      (2) And how can I restore my Admin rights directly by phpMyAdmin?

      Thank you.

      Translated with www.DeepL.com/Translator

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Hello,
        what version of EspoCRM do you use? Is it upgraded (if yes, from what version) or a new installation?
        Is this user Admin?

        Comment

        • PGI
          Member
          • Oct 2017
          • 77

          #5
          Hello,
          I am in version 5.5.5.5: I update each time, in order.

          Yes, this is the admin user.

          Perhaps it is possible to fix the problem directly in the MySQL database?

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            Can you create other entities?
            Did you customize ACL?
            Because Admin has no restrictions at all

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7
              Hi,

              You can rename your type field manualy in custom/Espo/Custom/Resources/metadata/entityDefs/User.php. Then rebuild.

              Find your user in user table and set type = 'admin'
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • PGI
                Member
                • Oct 2017
                • 77

                #8
                Hello,
                Thank you for your help. Everything's okay!

                Comment

                Working...