dm_core 4.2.2.1 → 4.2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 239615be3092182426916f9368a2250a2c2e7499
|
4
|
+
data.tar.gz: a801bbe30e05c95292cc698f0fbd6e21a74c7fb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d455476c5fbd342051da50d966f23ca0318921437d6376b78c270822a2a7560eed0583c32c6465fb81a9b459952c6ef07cfd225c37f0ed525ea626cf49c8fdc2
|
7
|
+
data.tar.gz: cc87a037ab8507153e4b4805b39909faec633f311cc1abad5628410b406eb356cca1d4d26eb87cf48d888faea9f55de5f216a5eca7eaeb5bee4d47001dd24cd9
|
@@ -21,7 +21,7 @@ class DmCore::Admin::AdminController < ApplicationController
|
|
21
21
|
#------------------------------------------------------------------------------
|
22
22
|
def authenticate_admin_user!
|
23
23
|
authenticate_user!
|
24
|
-
unless can?(:
|
24
|
+
unless can?(:access_admin, :all)
|
25
25
|
flash[:alert] = "Unauthorized Access!"
|
26
26
|
redirect_to current_account.index_path
|
27
27
|
end
|
@@ -77,7 +77,7 @@ private
|
|
77
77
|
@admin_theme[:main_menu] << {text: 'Dashboard', icon_class: :dashboard, link: dm_core.admin_dashboard_path, active: admin_path_active_class?(dm_core.admin_dashboard_path) }
|
78
78
|
|
79
79
|
if defined?(DmCms)
|
80
|
-
if can?(:
|
80
|
+
if can?(:access_content_section, :all)
|
81
81
|
@admin_theme[:main_menu] << {text: 'Pages', icon_class: :pages, link: dm_cms.admin_cms_pages_path, active: admin_path_active_class?(dm_cms.admin_cms_pages_path, dm_cms.admin_cms_snippets_path) }
|
82
82
|
@admin_theme[:main_menu] << {text: 'Blogs', icon_class: :blogs, link: dm_cms.admin_cms_blogs_path, active: admin_path_active_class?(dm_cms.admin_cms_blogs_path) }
|
83
83
|
end
|
@@ -154,14 +154,15 @@
|
|
154
154
|
<% if disable_fields %>
|
155
155
|
<%= f.input 'roles[admin]', as: :boolean, label: 'Administrator', input_html: {checked: @user.has_role?(:admin)}, disabled: true, hint: 'access to entire website' %>
|
156
156
|
<% else %>
|
157
|
-
<%= f.input('roles[reviewer]',
|
158
|
-
<%= f.input('roles[content_manager]',
|
159
|
-
<%= f.input('roles[
|
160
|
-
<%= f.input('roles[
|
161
|
-
<%= f.input('roles[
|
162
|
-
<%= f.input('roles[
|
163
|
-
<%= f.input('roles[
|
164
|
-
|
157
|
+
<%= f.input('roles[reviewer]', as: :boolean, label: 'Reviewer', input_html: {checked: @user.has_role?(:reviewer)}, hint: 'will be able to view draft versions of blog entries, as long as they are sent the correct link') %>
|
158
|
+
<%= f.input('roles[content_manager]', as: :boolean, label: 'Content Manager', input_html: {checked: @user.has_role?(:content_manager)}, hint: 'can manage blog and static pages') if defined?(DmCms) %>
|
159
|
+
<%= f.input('roles[content_manager_alacarte]',as: :boolean, label: 'Individual Content Management', input_html: {checked: @user.has_role?(:content_manager_alacarte)}, hint: 'grant access to specific pages/blogs only') if defined?(DmCms) %>
|
160
|
+
<%= f.input('roles[event_manager]', as: :boolean, label: 'Event Manager', input_html: {checked: @user.has_role?(:event_manager)}, hint: 'can manage events and workshops') if defined?(DmEvent) %>
|
161
|
+
<%= f.input('roles[event_manager_alacarte]', as: :boolean, label: 'Individual Event Management', input_html: {checked: @user.has_role?(:event_manager_alacarte)}, hint: 'grant access to specific events only') if defined?(DmEvent) %>
|
162
|
+
<%= f.input('roles[forum_manager]', as: :boolean, label: 'Forum Manager', input_html: {checked: @user.has_role?(:forum_manager)}, hint: 'can manage forums') if defined?(DmForum) %>
|
163
|
+
<%= f.input('roles[course_manager]', as: :boolean, label: 'Course Manager', input_html: {checked: @user.has_role?(:course_manager)}, hint: 'can manage courses and lessons') if defined?(DmLms) %>
|
164
|
+
<%= f.input('roles[subscription_manager]', as: :boolean, label: 'Subscription Manager', input_html: {checked: @user.has_role?(:course_manager)}, hint: 'can manage site subscriptions') if defined?(DmSubscriptions) %>
|
165
|
+
<%#= f.input 'roles[newsletter_manager]', as: :boolean, label: 'Newsletter Manager', input_html: {checked: @user.has_role?(:newsletter_manager)}, hint: 'can manage newsletters' %>
|
165
166
|
<hr>
|
166
167
|
<%= f.input 'roles[manager]', as: :boolean, label: 'Manager', input_html: {checked: @user.has_role?(:manager)}, hint: 'can manage all areas except for global account settings and deleting users' %>
|
167
168
|
<% if is_admin? %>
|
data/lib/dm_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.2.
|
4
|
+
version: 4.2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|