WorkFlow for Regular users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dabasystem
    Member
    • Jul 2018
    • 51

    WorkFlow for Regular users

    Hello!
    I would need to know how to enable the configuration of "Workflows" for regular users. How can I do it (I do not mind modifying code if necessary).

    Thank you so much,
    A greeting!
  • dabasystem
    Member
    • Jul 2018
    • 51

    #2
    Hello,
    There is no way?

    Comment

    • tothewine
      Active Community Member
      • Jan 2018
      • 373

      #3
      Never tried, but if I think you could start by going to the php files for workflows and looking for the ACL checks... also you could try to use the rest api to add workflow permissions to user. You would need to link the user to the Workflow page I think.
      Last edited by tothewine; 04-29-2019, 11:38 AM.

      Comment

      • dabasystem
        Member
        • Jul 2018
        • 51

        #4
        Hello!
        No, it is not checking ACL, it is directly only for administrators (as was the importer in the past)

        I do not know if I can modify files to be accessible through ACL.

        Could it be done?

        Comment

        • tothewine
          Active Community Member
          • Jan 2018
          • 373

          #5
          This is well beyond my knowledge. I think it may be done by editing the metadata by looking at how and where other entities ACL things are defined. Eg. You look for ACL definitions for all Tasks-realated metadata and then replicate to the Workflow metadata (the jsons in the resources folders, both custom and application (and crm module resources)). The idea is to try to turn the Workflow scope into a normal entity I think.

          Comment

          • dabasystem
            Member
            • Jul 2018
            • 51

            #6
            Are there some "steps" to follow? I have tried several things but they do not work ...

            Thank you!
            A greeting

            Comment

            • tothewine
              Active Community Member
              • Jan 2018
              • 373

              #7
              Have you tried (as a quick check) opening the workflow entity url as a normal user commenting the ACL codes until you get no permission error?
              When you make that work you can patch all the commented parts to allow if your conditions (username, team or whatever you can put in a php 'if') are met.
              Last edited by tothewine; 05-15-2019, 10:02 PM.

              Comment

              Working...