Importing Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stocknerjene
    Junior Member
    • Oct 2017
    • 6

    Importing Data

    Currently importing data is reserved only for admin. Is it possible to modify the source code, or permissions to allow non-admin users to import data?
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    For this you need to modify the source code

    Comment

    • riju
      Member
      • Aug 2017
      • 33

      #3
      where to alter the code?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        I think it's tricky to implement properly. To do it roughly you can just remove this line: https://github.com/espocrm/espocrm/b...Import.php#L42
        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

        • riju
          Member
          • Aug 2017
          • 33

          #5
          Yes it works, but the 'import result' section is still showing access denied.

          Comment

          • phamduc
            Member
            • Feb 2018
            • 63

            #6
            Hi,

            I try this way (remove line 42 as this guide https://github.com/espocrm/espocrm/b...Import.php#L42 ) but import result show this error:

            Error 403
            You don't have an access to this area.
            "

            Please advise

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              Hi,
              you need to modify at least one more file https://github.com/espocrm/espocrm/b.../import.js#L34

              Comment

              • phamduc
                Member
                • Feb 2018
                • 63

                #8
                Hi,

                I update import.js file as below

                Espo.define('controllers/import', 'controllers/record', function (Dep) {

                return Dep.extend({

                defaultAction: 'index',

                checkAccess: function () {
                if (this.getUser().isAdmin()) {
                return true;
                }
                return true;
                },

                index: function () {
                this.main('Import.Index', null);
                }

                });

                });

                But the error still same

                Comment

                • tanya
                  Senior Member
                  • Jun 2014
                  • 4308

                  #9
                  needs a deep digging code. This feature is planned to be implemented in half a year

                  Comment

                  • phamduc
                    Member
                    • Feb 2018
                    • 63

                    #10
                    Hi Tanya,

                    Is this function implemented ? Pls advise

                    Comment

                    • tanya
                      Senior Member
                      • Jun 2014
                      • 4308

                      #11
                      Not yet

                      Comment

                      • phamduc
                        Member
                        • Feb 2018
                        • 63

                        #12
                        Hi Tanya,

                        Will it come soon ?

                        Comment

                        • tanya
                          Senior Member
                          • Jun 2014
                          • 4308

                          #13
                          Originally posted by tanya
                          This feature is planned to be implemented in half a year
                          message since March 2018

                          Comment

                          • mfliorko
                            Junior Member
                            • Jun 2023
                            • 27

                            #14
                            Hi Tanya and Espo team,

                            is the feature "import data by non-admin users" already implemented?

                            Comment

                            • shalmaxb
                              Senior Member
                              • Mar 2015
                              • 1602

                              #15
                              Yes, in roles

                              Comment

                              Working...