Commit 0057debd authored by Côme Chilliet's avatar Côme Chilliet

Fixes #3549 Added support for sudoNotBefore and sudoNotAfter

Note that this shows them as date while they could contain date and time
in theory
parent 5db0fa9b
......@@ -202,7 +202,17 @@ class sudo extends simplePlugin
_('Priority'), _('This rule priority compared to others'),
'sudoOrder', FALSE,
0, FALSE, 0
)
),
new GeneralizedTimeDateAttribute (
_('Valid starting from'), _('Start of time interval for which the entry is valid (leave empty to disable)'),
'sudoNotBefore', FALSE,
''
),
new GeneralizedTimeDateAttribute (
_('Valid until'), _('End of time interval for which the entry is valid (leave empty to disable)'),
'sudoNotAfter', FALSE,
''
),
)
),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment