Account created on 13 March 2013, almost 12 years ago
#

Recent comments

🇷🇺Russia antiden

ok, found. I think this is bug my system, after rebooting, working.

🇷🇺Russia antiden

ok, find problem, in module file Office Editor.js starts with i how iffAceEditor.js and editor not working, if js rename on IffAceEditor.js all work. Please check.

🇷🇺Russia antiden

Hi, i have fresh installation.

-

Preparation

  • Created Content type: "Group News"
  • Created Taxonomy type: "News moderation" with statuses: "Draft", "Check", "Published", "Archived"
  • In "Group News" created field with taxonomy reference "News moderation" with name "Moderation" with required and by default value "Draft"
  • Created Group type: "Company" with all checkboxes, in Content Tab installed "Group News"
  • Created 3 users: test (role - Auth), test1 (role - Auth), editor (role - Editor)
  • In Group type "Company" added new role: "Editor" with Inside role in select global role "Editor"
  • In system Roles page, for Editor checkboxes same Auth
  • Created Group: "Company 1" and added 3 users with default roles (2 Member and 1 Editor)
  • In Group Permissions: View published group and Entity: Add content item entities for roles member and Editor

-

TAC Light

  • Settings -> Vocabularies -> News moderation
  • Number of Schemes: 2
  • Scheme 1 -> Name: View -> Grant -> Authenticated user and Editor -> Selected All
  • Scheme 2 -> Name: Edit -> Grant -> Authenticated user -> Draft
  • Scheme 2 -> Name: Edit -> Grant -> Editor -> Selected All
  • Rebuild permissions and cache

-

Testing

  • User "test", add new News from Group, Add Group News /group/1/content/create/group_node%3Agroup_news
  • User "test" can view new post, but not edit (in TAC Light permission if draft can edit)
  • User "editor", not view and edit permissions (in TAC Light can view and edit)

-
I think the Group's access rights override the rights of TAC Light.

🇷🇺Russia antiden

Yay, installed dev version, and runTransition() it worked. Big thx!

🇷🇺Russia antiden

Thanks for your answer, but I get an error. Transition name: paid (from Pay to Paid). My code:

$workflowsManager = Drupal::service('webform_workflows_element.manager');
$element_id = 'workflow';
$transition_id = 'paid';
$log_message = 'Paid in order ' . $order->getOrderNumber();
$success = $workflowsManager->runTransition($webform_submission, $element_id, $transition_id, $log_message);
if ($success) {
    $webform_submission->save();
}

Error: Call to undefined method Drupal\webform_workflows_element\Service\WebformWorkflowsManager::runTransition()...

🇷🇺Russia antiden

Hi,

ok, find problem. I have installed module: remove_username and that caused the error, because this module is removing the 'name' (username) field from the user management forms.

Your module is working well.

With regards.

Production build 0.71.5 2024