I've obviously missed something. Have created various workflows. All work if the user has administrator role. I have setup various roles and permissions. Have assigned users to those roles and permissions. Users without the administrator role can see the task in the Task Console but cannot do anything with it.

What the heck did I miss?

Thanks,
mlcc2000

Comments

mlcc2000’s picture

I noticed the following error when a user loads the Task Console:

MaestroTaskTypeBatchFunction - unable to find the function: maestro_publishArticle

Maybe this is the source of my problems with non-administrator roled users?

Thank you,
mlcc2000

blainelang’s picture

That batch function was renamed in the 1.2 release to be more generic to maestro_publishNode

Looks like we forgot to update the default test workflows. Just edit your workflow template and change that function name. You should notice in the list of available (registered) functions when editing the template batch function task that maestro_publishArticle is not one of the listed options.

mlcc2000’s picture

Thank you for the reply.

I went thru my templates and changed the function to maestro_publishNode. Ran cron several times. Still getting the same error in my logs even with no tasks in the Task Console. Do I need to delete all the Workflows and start all over again?

Still cannot find out why a non-administrator Roled user cannot create/start or perform tasks from the Task Console. If I give the user the administrator role, it all works. I have modified the permissions to the content types, etc. No luck. Have looked thru docs, posts, videos for clues and cannot see where I have strayed. Any suggestions?

Thank you,
mlcc2000

blainelang’s picture

You noted before there was an error 'function not found' are you still seeing that?
Was the function maestro_publishNode in the list of registered functions when editing the batch function?

If the function is there and executing, then your issue is Drupal permissions - can a normal user publish a node?

mlcc2000’s picture

  1. Yes, the error still exists.
  2. MaestroTaskTypeBatchFunction - unable to find the function: maestro_publishArticle

  3. Yes, the function was in the list of registered functions. I have updated all workflow to use the correct function.
  4. Yes, a normal user can publish a node but not perform any tasks on a like node from the Task Console.

Thank you.
mlcc2000

blainelang’s picture

Are you relaunching a new instance of the workflow after you edit the template?

mlcc2000’s picture

I deleted all of my existing workflows. Created a new workflow based upon the corrected template and I no longer see the error messages.

Now, I am still at a loss as to why only the administrator can create/update/modify the task via the Task Console. Have modified all the permissions that I can see and no luck. Any ideas?

mlcc2000’s picture

OK. I might have figured this out. When I enabled the permission for my other user roles to use the administrative toolbar, it works.

Now, I am confused as to why this is the case.

mlcc2000

_randy’s picture

Status: Active » Postponed (maintainer needs more info)

I just tried a fresh installation of Maestro on a clean d7.14 site and I can't seem to reproduce the issue. I used the Devel module to create 10 users, all of which have no special access permissions or roles, and all of them are able to access the task console.

So it is not an issue with the Task console -- and your issue above doesn't specifically say there is a problem seeing the tasks, so that clears up that side of the issue.

However you note that you are unable to create/update/modify a task. What type of task specifically?
I've also tested the test workflows and they all work just fine for non admin users.

If you are referring to a content type task, then the user executing the content type task needs to have the permission to create or edit that specific content type in Drupal.

mlcc2000’s picture

OK. Let me regroup and get all my info better order. I will open a new issue.

mlcc2000