front dev update

This commit is contained in:
Stephan D
2026-01-30 16:54:56 +01:00
parent 51f5b0804a
commit 102c5d3668
31 changed files with 755 additions and 74 deletions

View File

@@ -18,6 +18,7 @@ import 'package:pshared/models/resources.dart';
import 'package:pshared/provider/organizations.dart';
import 'package:pshared/provider/resource.dart';
import 'package:pshared/service/permissions.dart';
import 'package:pshared/utils/exception.dart';
class PermissionsProvider extends ChangeNotifier {
@@ -43,10 +44,7 @@ class PermissionsProvider extends ChangeNotifier {
await operation();
return await load();
} catch (e) {
_userAccess = _userAccess.copyWith(
error: e is Exception ? e : Exception(e.toString()),
isLoading: false,
);
_userAccess = _userAccess.copyWith(error: toException(e), isLoading: false);
notifyListeners();
return _userAccess.data;
}