Announcement

Collapse
No announcement yet.

Importing Data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

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

    Comment


    • #3
      where to alter the code?

      Comment


      • #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

        Comment


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

          Comment


          • #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


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

              Comment


              • #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


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

                  Comment


                  • #10
                    Hi Tanya,

                    Is this function implemented ? Pls advise

                    Comment


                    • #11
                      Not yet

                      Comment


                      • #12
                        Hi Tanya,

                        Will it come soon ?

                        Comment


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

                          Comment


                          • #14
                            Hi Tanya and Espo team,

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

                            Comment


                            • #15
                              Yes, in roles

                              Comment

                              Working...
                              X