There is a new functionality in apps #2316125: Add permissions option to the hook_apps_app. Lets look though are current apps and see if there are places we can use it.

Comments

hefox’s picture

openpublic_workflow: access workbench :: administer workbench :: administer workbench moderation :: bypass workbench moderation :: use workbench_moderation my drafts tab :: use workbench_moderation needs review tab :: view all unpublished content :: view moderation history :: view moderation messages

openpublic_blog: create blog_entry content :: delete any blog_entry content :: delete own blog_entry content :: edit any blog_entry content :: edit own blog_entry content

openpublic_breaking_news: edit any breaking_news entity_boxes :: view any breaking_news entity_boxes

openpublic_document: create document content :: delete any document content :: delete own document content :: edit any document content :: edit own document content

openpublic_event: create event content :: delete any event content :: delete own event content :: edit any event content :: edit own event content

openpublic_faqs: create faqs content :: delete any faqs content :: delete own faqs content :: edit any faqs content :: edit own faqs content

openpublic_home_page_feature: edit any carousel entity_boxes :: edit any feature entity_boxes :: view any carousel entity_boxes :: view any feature entity_boxes

openpublic_person: create profile content :: delete any profile content :: delete own profile content :: edit any profile content :: edit own profile content

openpublic_press_release: create press_release content :: delete any press_release content :: delete own press_release content :: edit any press_release content :: edit own press_release content

openpublic_promotion: edit any promotion entity_boxes :: view any promotion entity_boxes

openpublic_resources: create resource content :: delete any resource content :: delete own resource content :: edit any resource content :: edit own resource content

openpublic_services: create services content :: delete any services content :: delete own services content :: edit any services content :: edit own services content

openpublic_site_page: create site_page content :: delete any site_page content :: delete own site_page content :: edit any site_page content :: edit own site_page content

openpublic_webform: access all webform results :: access own webform results :: access own webform submissions :: create webform content :: delete all webform submissions :: delete any webform content :: delete own webform content :: delete own webform submissions :: edit all webform submissions :: edit any webform content :: edit own webform content :: edit own webform submissions

generated via

  apps_include('manifest');

foreach (apps_apps('openpublic') as $app) {
  if (($feature = features_load_feature($app['machine_name'])) && !empty($feature->info['features']['user_permission'])) {
    drupal_set_message($feature->name . ': ' . implode("  :: ", $feature->info['features']['user_permission']));
    drupal_set_message("<br />\n");
  }
}

I don't see any there that seems like a bad idea to make them use app based permissions, so might as well convert them all to app permissions?

e2thex’s picture

Yeah I think those are all good app based permissions. Lets do it.

hefox’s picture

Status: Active » Fixed

  • hefox committed 9b0756d on 7.x-1.x
    Issue #2317189: Move permissions into app permissions
    

  • hefox committed 9b0756d on 7.x-1.x-2322275
    Issue #2317189: Move permissions into app permissions
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.