foreman_users 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
|
|
1
|
-
class
|
1
|
+
class CreateForemaUsersGroups < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :foreman_users_groups do |t|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
t.string :name
|
5
|
+
t.string :ensure
|
6
|
+
t.string :gid
|
7
|
+
t.string :groupable_type
|
8
|
+
t.integer :groupable_id
|
9
|
+
t.integer :user_id
|
10
|
+
t.timestamps
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/foreman_users/engine.rb
CHANGED
@@ -33,6 +33,7 @@ module ForemanUsers
|
|
33
33
|
role 'ForemanUsers', [:view_foreman_users]
|
34
34
|
|
35
35
|
|
36
|
+
# add menu entry
|
36
37
|
sub_menu :top_menu, :forema_user_menu, :caption=> N_('UserManage'), :after=> :export_menu do
|
37
38
|
menu :top_menu, :level1, :caption=>N_('User List'), :url_hash => { :controller => 'foreman_users/users', :action => :index }
|
38
39
|
menu :top_menu, :level1, :caption=>N_('New User'), :url_hash => { :controller => 'foreman_users/users', :action => :new }
|
@@ -46,12 +47,7 @@ module ForemanUsers
|
|
46
47
|
end
|
47
48
|
|
48
49
|
|
49
|
-
|
50
|
-
menu :top_menu, :template,
|
51
|
-
url_hash: { controller: :'foreman_users/hosts', action: :new_action },
|
52
|
-
caption: 'ForemanUsers',
|
53
|
-
parent: :hosts_menu,
|
54
|
-
after: :hosts
|
50
|
+
|
55
51
|
|
56
52
|
# add dashboard widget
|
57
53
|
widget 'foreman_users_widget', name: N_('Foreman plugin template widget'), sizex: 4, sizey: 1
|