Revision 3acdb292
Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt
SL/Controller/TimeRecording.pm | ||
---|---|---|
23 | 23 |
|
24 | 24 |
|
25 | 25 |
# safety |
26 |
#__PACKAGE__->run_before('check_auth');
|
|
26 |
__PACKAGE__->run_before('check_auth'); |
|
27 | 27 |
|
28 | 28 |
# |
29 | 29 |
# actions |
... | ... | |
138 | 138 |
SL::DB::Manager::Employee->get_all_sorted; |
139 | 139 |
} |
140 | 140 |
|
141 |
sub check_auth { |
|
142 |
$::auth->assert('time_recording'); |
|
143 |
} |
|
144 |
|
|
141 | 145 |
sub prepare_report { |
142 | 146 |
my ($self) = @_; |
143 | 147 |
|
menus/user/10-time-recording.yaml | ||
---|---|---|
3 | 3 |
id: system_time_recording_types |
4 | 4 |
name: Time Recording Types |
5 | 5 |
order: 2370 |
6 |
access: config |
|
6 | 7 |
params: |
7 | 8 |
action: SimpleSystemSetting/list |
8 | 9 |
type: time_recording_type |
... | ... | |
10 | 11 |
id: productivity_time_recording |
11 | 12 |
name: Time Recording |
12 | 13 |
order: 350 |
14 |
access: time_recording |
|
13 | 15 |
params: |
14 | 16 |
action: TimeRecording/edit |
15 | 17 |
- parent: productivity_reports |
16 | 18 |
id: productivity_reports_time_recording |
17 | 19 |
name: Time Recording |
18 | 20 |
order: 300 |
21 |
access: time_recording |
|
19 | 22 |
params: |
20 | 23 |
action: TimeRecording/list |
sql/Pg-upgrade2-auth/right_time_recording.sql | ||
---|---|---|
1 |
-- @tag: right_time_recording |
|
2 |
-- @description: Recht zur Zeiterfassung |
|
3 |
-- @depends: release_3_5_6_1 |
|
4 |
-- @locales: Create, edit and list time recordings |
|
5 |
|
|
6 |
INSERT INTO auth.master_rights (position, name, description, category) |
|
7 |
VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'productivity'), |
|
8 |
'time_recording', |
|
9 |
'Create, edit and list time recordings', |
|
10 |
FALSE); |
Auch abrufbar als: Unified diff
Zeiterfassung: Ein Recht dafür